[cmake-developers] target_include_directories branch in stage
Alexander Neundorf
neundorf at kde.org
Tue Nov 29 14:28:59 EST 2011
...a somewhat related idea: if it will be possible to set include
directories per target, and since it is already possible to set compile flags
per target, it would be nice if I could also set a property on targets which
keeps them from using the global settings at all.
Something like
set_target_properties(hello PROPERTIES COMPILE_FLAGS "..."
INCLUDE_DIRS "..."
IGNORE_GLOBAL_SETTINGS TRUE)
which would have the effect that neither the include directories for the
current directory nor the global CMAKE_(C|CXX)_FLAGS would be used, but only
what has been explicitely set for this target.
Sounds like a useful idea ?
If you think it makes sense, I might have some time to work on it.
Alex
More information about the cmake-developers
mailing list