From e0e501963c78e83cf2e5426c7a15263d7c721a93 Mon Sep 17 00:00:00 2001 From: Markus Rickert Date: Sun, 10 Sep 2017 19:07:18 +0200 Subject: [PATCH] Add install include directories to target properties --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99aa28f..4864478 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -236,7 +236,7 @@ target_include_directories (${nlopt_lib} PRIVATE api) get_target_property (NLOPT_PRIVATE_INCLUDE_DIRS ${nlopt_lib} INCLUDE_DIRECTORIES) -target_include_directories (${nlopt_lib} INTERFACE "$") +target_include_directories (${nlopt_lib} INTERFACE "$" "$/${CMAKE_INSTALL_INCLUDEDIR}>") if (BUILD_SHARED_LIBS) target_compile_definitions (${nlopt_lib} PUBLIC -DNLOPT_DLL) -- 2.30.2