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)