[CMake] INCLUDE_DIRECTORIES (command vs target property)
Micha Renner
Micha.Renner at t-online.de
Mon Oct 22 09:05:05 EDT 2012
Hello,
The target property INCLUDE_DIRECTORIES overwrites the
include_directories command values.
A better way would have been that the values of the include_directories
command would appended to the values of the target property
INCLUDE_DIRECTORIES.
I think that would make more sense.
INCLUDE_DIRECTORIES(general_include_directories)
# Projet A
...
SET_TARGET_PROPERTIES(ProA PROPERTIES
INCLUDE_DIRECTORIES ${ProjAIncludeDirs})
...
# Projet B
...
SET_TARGET_PROPERTIES(ProB PROPERTIES
INCLUDE_DIRECTORIES ${ProjBIncludeDirs})
...
Grettings
Micha Renner
More information about the CMake
mailing list