Skip to content

Commit

Permalink
Make sure APEX is linked to even when not explicitly referenced
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Dec 13, 2019
1 parent 6ea589b commit e8f5a1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/HPX_SetupApex.cmake
Expand Up @@ -53,6 +53,9 @@ if(HPX_WITH_APEX)
get_target_property(_apex_include_directories apex INTERFACE_INCLUDE_DIRECTORIES)
set_property(TARGET hpx::apex PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${_apex_include_directories})
set_property(TARGET hpx::apex PROPERTY INTERFACE_LINK_LIBRARIES apex)
if(UNIX AND NOT APPLE)
set_property(TARGET hpx::apex PROPERTY INTERFACE_LINK_OPTIONS "-Wl,-no-as-needed")
endif()

# handle optional ITTNotify library (private dependency, skip when called in find_package(HPX))
if(HPX_WITH_ITTNOTIFY AND NOT HPX_FIND_PACKAGE)
Expand Down

0 comments on commit e8f5a1f

Please sign in to comment.