[CMake] Problems with TRY_RUN

David Cole david.cole at kitware.com
Tue Oct 11 07:41:39 EDT 2005


Use "ARGUMENTS" (plural) rather than "ARGUMENT" (singular)...

HTH,
David

j.trauntvein at comcast.net wrote:

>Hello,
>
>I am trying to specify in my cmake project file that a file should be compiled and run in order to generate a header from a text file that can be used in my source.  Although I believe that I have constructed the command as specified in the web documentation, I cannot get cmake to successfully run.  I get the following message:
>
>  CMake Error: The source directory "ARGUMENT" 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
>
>The following is the excerpt from  my CMakeLists.txt file:
>
>TRY_RUN(wmodem_result wmodem_compile
>  ${BINDIR} wmodem_convert.cpp 
>  ARGUMENT wmodem.ini ModemDbHelpers.DbInit.h)
>
>Any help would be appreciated.
>
>regards,
>
>Jon Trauntvein
>
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake
>
>
>  
>



More information about the CMake mailing list