aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-25 15:16:58 +0100
committerStephen Kelly <steveire@gmail.com>2013-01-25 15:21:56 +0100
commite1fc3638557061abbb24e3c7b35fe5f835c1bbbe (patch)
treec96873978cb3f61ba66a3b1b8689d9d0c361dc72
parente45a33c055f81d2e886605e0fbc87410f29ce298 (diff)
downloadextra-cmake-modules-e1fc3638557061abbb24e3c7b35fe5f835c1bbbe.tar.gz
extra-cmake-modules-e1fc3638557061abbb24e3c7b35fe5f835c1bbbe.tar.bz2
Populate the INTERFACE_INCLUDE_DIRECTORIES of all built targets.
This will only have an effect with CMake 2.8.11, but until then, it does no harm.
-rw-r--r--kde-modules/KDECMakeSettings.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake
index efbfcfa7..46c466e0 100644
--- a/kde-modules/KDECMakeSettings.cmake
+++ b/kde-modules/KDECMakeSettings.cmake
@@ -79,6 +79,9 @@ if(NOT KDE_SKIP_BUILD_SETTINGS)
# since cmake 2.4.1
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
+ # Add the src and build dir to the BUILD_INTERFACE include directories
+ # of all targets. Similar to CMAKE_INCLUDE_CURRENT_DIR, but transitive.
+ set(CMAKE_BUILD_INTERFACE_INCLUDES ON)
# This will only have an effect in CMake 2.8.7
set(CMAKE_LINK_INTERFACE_LIBRARIES "")