aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 "")