diff --git a/src/apex/CMakeLists.hpx b/src/apex/CMakeLists.hpx index 59f91dce..9a2ca1c4 100644 --- a/src/apex/CMakeLists.hpx +++ b/src/apex/CMakeLists.hpx @@ -35,8 +35,6 @@ set(APEX_BINARY_DIR ${APEX_BINARY_DIR} PARENT_SCOPE) hpx_info("apex" "APEX source dir is ${APEX_SOURCE_DIR}") hpx_info("apex" "APEX binary dir is ${APEX_BINARY_DIR}") -include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${APEX_BINARY_DIR} ${CMAKE_SOURCE_DIR}/apex/src/contrib) - # This macro will make sure that the hpx/config.h file is included add_definitions(-DAPEX_HAVE_HPX_CONFIG) # This macro will be added to the hpx/config.h file. @@ -381,6 +379,11 @@ add_hpx_library(apex HEADERS ${apex_headers} DEPENDENCIES hpx_assertion hpx_cache hpx_hardware FOLDER "Core/Dependencies") +target_include_directories(apex PUBLIC + $ + $ + $ + $) #if(APPLE) #hpx_add_link_flag("-weak_library libhpx_taudummy.dylib -flat_namespace")