Here is a small CMake script which generates an make error(Linux only):

ADD_LIBRARY(${_targetname} file.c)

SET_TARGET_PROPERTIES(${_targetname} PROPERTIES
        COMPILE_FLAGS  "-DRED -DGREEN 
                        -DBLUE -DYELLOW")

If one writes
SET_TARGET_PROPERTIES(${_targetname} PROPERTIES
        COMPILE_FLAGS  "-DRED -DGREEN -DBLUE -DYELLOW")
everything is okay.

Another point is:
SET_TARGET_PROPERTIES(${_targetname} PROPERTIES
        COMPILE_FLAGS  -DRED=\"rot\")

Same as ADD_DEFINITIONS before CMP0005.
I mean, if it works with ADD_DEFINITIONS, it should work with
set_target_properties too. Same logic.

Michael


_______________________________________________
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