[CMake] Differentiating CMAKE-driven compiles from product compiles

Phil Smith phil at voltage.com
Fri Sep 5 16:01:37 EDT 2008


For our cross-compiling, we need to set some "peculiar" compiler options. However, those options make CMake fail when it calls the compiler for CheckTypeSize, testCCompiler, and CheckIncludeFile (what I call the "CMake compiles").

Is there a way to differentiate the options passed on the CMake compiles?  I keep peering at CMAKE_BUILD_TYPE, but I don't think that's quite it.
--
...phsiii

Phil Smith III
phil at voltage.com
Voltage Security, Inc.
www.voltage.com
(703) 476-4511 (home office)
(703) 568-6662 (cell)




More information about the CMake mailing list