From e1fc3638557061abbb24e3c7b35fe5f835c1bbbe Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Fri, 25 Jan 2013 15:16:58 +0100 Subject: 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. --- kde-modules/KDECMakeSettings.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kde-modules/KDECMakeSettings.cmake') 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 "") -- cgit v1.2.1