[CMake] TRY_COMPILE NOT WORKING

Ashwin Chandra achandra at panologic.com
Mon Jul 20 17:20:24 EDT 2009


Does anyone have any insight to the below problem?

 

From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
Of Ashwin Chandra
Sent: Sunday, July 19, 2009 12:24 AM
To: cmake at cmake.org
Subject: [CMake] TRY_COMPILE NOT WORKING

 

I am using a custom compiler and during the initialization of CMake, the
CMakeTestCCompiler.cmake is invoked which tries to compile a simple
program. However the compile fails it is because of the flags passed to
the compiler. 

 

For example, the command line that is generated by CMake is:

 

"C:\PROGRA~1\COMMON~1\COMPUW~1\NMShared\NMcl.exe  $(C_DEFINES)
$(C_FLAGS) -o CMakeFiles\cmTryCompileExec.dir\testCCompiler.c.obj   -c
C:\trunk\Debug\wxp_x86\CMakeFiles\CMakeTmp\testCCompiler.c"

 

The "-o" should be a "-Fo", otherwise the object file generated is not
of the form "testCCompiler.c.obj". 

 

Is there anyway to tell CMake to use "-Fo" instead of "-o"? Or perhaps
disable the Test?

 

Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090720/0c1f5a95/attachment-0001.htm>


More information about the CMake mailing list