From 6095b467d3407245127fbf58e4015c705f0b7a8e Mon Sep 17 00:00:00 2001 From: Erik Boasson Date: Sun, 8 Jul 2018 09:40:22 +0200 Subject: [PATCH] support non-default installation directories work Make cmake add the installation include directory to the include path so that non-default installation locations work properly Signed-off-by: Erik Boasson --- src/core/ddsc/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/ddsc/CMakeLists.txt b/src/core/ddsc/CMakeLists.txt index 7c2b729..014cd29 100644 --- a/src/core/ddsc/CMakeLists.txt +++ b/src/core/ddsc/CMakeLists.txt @@ -122,6 +122,8 @@ target_include_directories(ddsc PRIVATE "${CMAKE_CURRENT_LIST_DIR}/src") +target_include_directories(ddsc INTERFACE $) + install( DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/include/ddsc" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"