CMake & ExternalProject: Fails to find specific file
Posted
by
Enrico
on Stack Overflow
See other posts from Stack Overflow
or by Enrico
Published on 2010-12-29T20:06:22Z
Indexed on
2010/12/30
18:53 UTC
Read the original article
Hit count: 334
Hi,
we have some dependency libraries in our repository. The main part is build with cmake. Now the cmake-makefiles shall build the dependency libraries, which do not have a cmake build system. For one specific library there is a "Makefile.squirrel" which should be used. The cmakelists.txt for that library:
cmake_minimum_required (VERSION 2.8)
include(ExternalProject)
ExternalProject_Add(squirrel,
SOURCE_DIR "./"
UPDATE_COMMAND ""
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND "make -f ${CMAKE_CURRENT_SOURCE_DIR}/Makefile.squirrel"
INSTALL_COMMAND ""
)
However, when running make I get an error message:
[ 93%] Performing build step for 'squirrel,'
/bin/sh: make -f /home/enrico/projekte/projectname/dependencies/SQUIRREL2/Makefile.squirrel: not found
make[2]: *** [dependencies/SQUIRREL2/squirrel,-prefix/src/squirrel,-stamp/squirrel,-build] Error 127
make[1]: *** [dependencies/SQUIRREL2/CMakeFiles/squirrel,.dir/all] Error 2
make: *** [all] Error 2
ls -lA on /home/enrico/projekte/projectname/dependencies/SQUIRREL2/Makefile.squirrel shows that the file exists.
Hardcoding the file path (not an option for the solution) does not work, too.
any ideas or hints?
Thanks, Enrico
© Stack Overflow or respective owner