[Cmake] Adding compile flags in several steps
Brad King
brad.king at kitware.com
Tue Aug 17 08:57:15 EDT 2004
Martin Magnusson wrote:
> Thanks for the quick reply. Just another quick (stupid) question.
> How do you append flags? Doing something like
>
> SET_SOURCE_FILES_PROPERTIES(
> ${SOURCES}
> COMPILE_FLAGS ${OLD_FLAGS} ${NEW_FLAGS} )
>
> doesn't seem to work. (It gives me the error message
> "SET_SOURCE_FILES_PROPERTIES called with illegal arguments, maybe
> missing a PROPERTIES specifier?") I don't see anything about it in the
> online documentation either.
You can always pass values as a single argument by using double quotes:
SET_SOURCE_FILES_PROPERTIES(
${SOURCES} PROPERTIES
COMPILE_FLAGS "${OLD_FLAGS} ${NEW_FLAGS}"
)
-Brad
More information about the Cmake
mailing list