Skip to content

Commit

Permalink
Adding POSITION_INDEPENDENT_CODE=ON to all HPX targets
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Aug 19, 2023
1 parent 268b225 commit d992fa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/HPX_SetupTarget.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ function(hpx_setup_target target)
hpx_debug("setup_target.${target} UNITY_BUILD: OFF")
endif()

set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON)

get_target_property(target_EXCLUDE_FROM_ALL ${target} EXCLUDE_FROM_ALL)

if(target_EXPORT AND NOT target_EXCLUDE_FROM_ALL)
Expand Down

0 comments on commit d992fa0

Please sign in to comment.