I'm trying to append a bunch of extra compile flags to a list of source files:
set_property(SOURCE foo.cpp main.cpp APPEND PROPERTY COMPILE_FLAGS -Wall) set( ignore_warning_flags "-Wno-unused -Wno-switch -Wno-write-strings -Wno-strict-aliasing -Wno-strict-prototypes -Wno-sign-compare" ) set_property( SOURCE ${sources} APPEND PROPERTY COMPILE_FLAGS "${ignore_warning_flags}" ) I tried that and making ignore_warning_flags a list and not quoting it in set_property, but the compile line ends up having a semi-colon before my new set of arguments: -include cmdoptMessageDefs.h;-Wno-unused -Wno I know there are issues with CMake treating some properties as strings and others as lists, but it's rather unfortunate that I can't use APPEND. Thanks, James
_______________________________________________ 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