File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "${tmachine}$")
70
70
LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR} " )
71
71
set_target_properties ("omptarget.rtl.${tmachine_libname} " PROPERTIES
72
72
INSTALL_RPATH "$ORIGIN" BUILD_RPATH "$ORIGIN:${CMAKE_CURRENT_BINARY_DIR} /.."
73
+ POSITION_INDEPENDENT_CODE ON
73
74
CXX_VISIBILITY_PRESET protected )
74
75
75
76
target_include_directories ( "omptarget.rtl.${tmachine_libname} " PRIVATE
Original file line number Diff line number Diff line change @@ -46,5 +46,8 @@ endif()
46
46
47
47
# libomptarget.so needs to be aware of where the plugins live as they
48
48
# are now separated in the build directory.
49
- set_target_properties (omptarget PROPERTIES INSTALL_RPATH "$ORIGIN" BUILD_RPATH "$ORIGIN:${CMAKE_CURRENT_BINARY_DIR} /.." )
49
+ set_target_properties (omptarget PROPERTIES
50
+ POSITION_INDEPENDENT_CODE ON
51
+ INSTALL_RPATH "$ORIGIN"
52
+ BUILD_RPATH "$ORIGIN:${CMAKE_CURRENT_BINARY_DIR} /.." )
50
53
install (TARGETS omptarget LIBRARY COMPONENT omptarget DESTINATION "${OPENMP_INSTALL_LIBDIR} " )
You can’t perform that action at this time.
0 commit comments