diff options
-rw-r--r-- | openmp/libomptarget/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/libomptarget/CMakeLists.txt b/openmp/libomptarget/CMakeLists.txt index 0710279b730..c5e0a6c6ece 100644 --- a/openmp/libomptarget/CMakeLists.txt +++ b/openmp/libomptarget/CMakeLists.txt @@ -95,7 +95,7 @@ if(LIBOMPTARGET_HAVE_STD_CPP11_FLAG) # Build libomptarget library with libdl dependency. add_library(omptarget SHARED ${src_files}) target_link_libraries(omptarget - dl + ${CMAKE_DL_LIBS} "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exports") # Install libomptarget under the lib destination folder. |