- How do I print the values of include_directories() inside a CMakeLists.txt file? I’ve been trying with get_property with no success.
- How do I pass down the directories specified in include_directories down to a subdirectory project ( a git submodule )?
CMakeLists.txt
git-submodule/
CMakeLists.txt # sets project(library), seems to reset
# include_directories
ben.boeckel
(Ben Boeckel (Kitware))
2
They’re added to the directory property INCLUDE_DIRECTORIES
.
They’re inherited.
include_directories(a)
add_subdirectory(d) # will include a, but not b
include_subdirectories(b)