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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to