From 289faf45ac26f7e0ac1a1e4305e5c42fc1e5b866 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 11 Aug 2023 11:16:16 +0800 Subject: fix build. --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 402e5c9..22520de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,10 +160,6 @@ elseif (${CMAKE_BUILD_TYPE} MATCHES "Release") target_compile_definitions(yue PRIVATE NDEBUG) endif() -if (CMAKE_DL_LIBS) - target_link_options(yue PRIVATE -ldl) -endif() - find_package(Threads REQUIRED) if (APPLE) set(MAC_LIBS "-framework CoreFoundation" "-framework CoreServices") @@ -175,7 +171,7 @@ else () endif() if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - target_link_options(yue PRIVATE -lstdc++fs) + target_link_options(yue PRIVATE -lstdc++fs -ldl) endif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") install(CODE "") -- cgit v1.2.3-55-g6feb