[CMake] novice question about set of CMAKE_C_COMPILE_OBJECT variable

David Dunkle ddunkle at arxan.com
Fri Sep 2 14:30:02 EDT 2011


This is a novice question, sorry. I have inherited a cmake build that is giving me trouble. Specifically this line might be at fault in a CMakeLists.txt file:

set(CMAKE_C_COMPILE_OBJECT "${target_compiler} -c <FLAGS> -o <OBJECT>")

I understand what CMAKE_C_COMPILE_OBJECT is doing, and what ${target_compiler} is set to, but I don't understand what <FLAGS> will be set to, and when it will be set. For that matter, although the syntax of <FLAGS> looks like it is a variable to be substituted, but what kind of variable is it? I can't seem to find any discussion of this in the documentation on cmake, including the book, that discuss this syntax of variables, the set command, etc.

More specifically, I suspect that <FLAGS> is getting set to values that are incompatible with the ${target_compiler}, but I don't know that for certain. How can I find out? For example, is there a way to display the value <FLAGS> is getting, even if it means modifying the CMakeLists.txt to do so?

-David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110902/01dedfa5/attachment-0001.htm>


More information about the CMake mailing list