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
--
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