File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ set_and_check( openmp_LIB_INSTALL_DIR "@PACKAGE_OPENMP_INSTALL_LIBDIR@" )
1010set_and_check( openmp_INCLUDE_DIR "@PACKAGE_LIBOMP_HEADERS_INSTALL_PATH@" )
1111set_and_check( openmp_INCLUDE_DIRS "${openmp_INCLUDE_DIR} " )
1212
13+ set ( libomp_install_rpath "@LIBOMP_INSTALL_RPATH@" )
1314include ( "${CMAKE_CURRENT_LIST_DIR} /openmpTargets.cmake" )
1415
1516set_property (TARGET OpenMP::omp APPEND PROPERTY
@@ -18,3 +19,9 @@ set_property(TARGET OpenMP::omp APPEND PROPERTY
1819set_property (TARGET OpenMP::omp APPEND PROPERTY
1920 INTERFACE_LINK_OPTIONS "-fopenmp"
2021)
22+
23+ if (libomp_install_rpath)
24+ set_property (TARGET OpenMP::omp APPEND PROPERTY
25+ INTERFACE_LINK_OPTIONS "-fno-openmp-implicit-rpath"
26+ )
27+ endif ()
You can’t perform that action at this time.
0 commit comments