[CMake] TRY_RUN problems in 2.2.6
William A. Hoffman
billlist at nycap.rr.com
Tue Nov 8 20:41:17 EST 2005
Looks like a documentation bug. Should be ARGS and not ARGUMENTS.
-Bill
At 05:24 PM 11/8/2005, j.trauntvein at comcast.net wrote:
>A while ago, I wrote that I was having issues with TRY_RUN. I had specified the word ARGUMENT instead of ARGUMENTS. Today, I was trying to do the same thing and am still having trouble. Here is a sample of the command from my CMakeLists file:
>
>TRY_RUN(dbinit_result dbinit_compile
> ${BIN_DIR} mkcdecl.c
> ARGUMENTS ModemDbHelpers.DbInit.h wmodem.ini init_records ModemDbHelpers)
>
>
>The purpose of this command is to compile a pre-processor and then run it in order to generate a header that my project needs. When I attempt to run cmake, I get the following error:
>
>CMake Error: The source directory "ARGUMENTS" does not exist.
>Specify --help for usage, or press the help button on the CMake GUI.
>CMake Error: Internal CMake error, TryCompile configure of cmake failed
>
>Apparently, I am misunderstanding the syntax for the command. Unfortunately, I cannot find any examples of the use of this command to verify my own file against.
>
>
>regards,
>
>Jon Trauntvein
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list