From 38ca47aeca670c9bd5d21c24c0444be1d8fd22b0 Mon Sep 17 00:00:00 2001 From: Yuri Date: Fri, 20 Jul 2018 23:05:14 -0700 Subject: [PATCH] Use the cmake feature ${CMAKE_DL_LIBS} instead of hardcoded -ldl. --- src/yafraycore/CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/yafraycore/CMakeLists.txt b/src/yafraycore/CMakeLists.txt index ce07c3b7..a07ce168 100644 --- a/src/yafraycore/CMakeLists.txt +++ b/src/yafraycore/CMakeLists.txt @@ -12,11 +12,7 @@ add_definitions(-DBUILDING_YAFRAYCORE) add_library(yafaray_v3_core SHARED ${YF_CORE_SOURCES}) -if (UNIX) - set (DLLOAD_LIB "dl" ) -else (UNIX) - set (DLLOAD_LIB "") -endif (UNIX) +set (DLLOAD_LIB ${CMAKE_DL_LIBS}) if(APPLE) # set rpath - Jens add_custom_command(TARGET yafaray_v3_core POST_BUILD COMMAND install_name_tool -add_rpath @loader_path/ libyafaray_v3_core.dylib)