[CMake] Compiling a file during CMake creation
Steven Van Ingelgem
steven at vaningelgem.be
Mon Jun 9 15:55:44 EDT 2008
Hi,
I want to compile a file when parsing the CMakeLists.txt...
I tried the following:
TRY_COMPILE(
PROJ_OK
${PROJECT_SOURCE_DIR}/bin
${PROJECT_SOURCE_DIR}/externals/proj
proj
)
But this is returning "false"... What could I have done wrong?
It is doing something, but I don't know what exactly... But it's definitly
waiting a while (probably compiling)...
If I do a cmake . in externals/proj, it generates a MSVC project and I can
build it no problem.
Can someone guide me in this command?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080609/805bed37/attachment.htm>
More information about the CMake
mailing list