From 957d93a02f75740aaef6ef37ff0e6393f9411336 Mon Sep 17 00:00:00 2001 From: Alexander Wittig Date: Fri, 21 Mar 2025 21:02:44 +0000 Subject: [PATCH] Add include directories to build target --- interfaces/cxx/CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/interfaces/cxx/CMakeLists.txt b/interfaces/cxx/CMakeLists.txt index b20c252..3b4e2ad 100644 --- a/interfaces/cxx/CMakeLists.txt +++ b/interfaces/cxx/CMakeLists.txt @@ -18,8 +18,18 @@ endif(WIN32) add_library(dace SHARED $ $ $) add_library(dace_s STATIC $ $ $) -target_include_directories(dace INTERFACE $) -target_include_directories(dace_s INTERFACE $) +# ugly hack: hard code all include directories when building from source (C++ includes, core includes, config.h include) +target_include_directories(dace INTERFACE $ + $ + $ + $ +) +target_include_directories(dace_s INTERFACE $ + $ + $ + $ +) + if(WITH_PTHREAD) target_link_libraries(dace PUBLIC pthread)