[CMake] Try_Compile

Micha Renner Micha.Renner at t-online.de
Thu Jul 24 11:42:45 EDT 2008


Hello,

for the first time I used
TRY_COMPILE(STD_BOOL TryDir TestFile.c)
in the CMakeLists-File

This results in the error-message:
"The source directory "TryDir/CMakeFiles/CMakeTmp" does not exist"

The "book" says nothing about special locations for test-files and
creating these files in the source-directory does not help.

Greetings
Michael




More information about the CMake mailing list