Removed dl dependency

This commit is contained in:
SChernykh
2023-01-26 15:45:41 +01:00
parent 67f091b843
commit be434329d1
3 changed files with 4 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ if (WIN32)
elseif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
set(LIBS ${LIBS} pthread)
elseif (NOT APPLE)
set(LIBS ${LIBS} pthread dl)
set(LIBS ${LIBS} pthread)
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES MSVC)
@@ -226,7 +226,7 @@ if (STATIC_BINARY OR STATIC_LIBS)
find_library(SYSTEM_CONFIGURATION_LIB SystemConfiguration)
set(STATIC_LIBS ${STATIC_LIBS} ${FOUNDATION_LIB} ${CORE_FOUNDATION_LIB} ${SYSTEM_CONFIGURATION_LIB})
else()
set(STATIC_LIBS ${STATIC_LIBS} pthread dl)
set(STATIC_LIBS ${STATIC_LIBS} pthread)
endif()
target_link_libraries(${CMAKE_PROJECT_NAME}

View File

@@ -96,7 +96,7 @@ if (WIN32)
endif()
add_definitions(-DCURL_STATICLIB)
elseif (NOT APPLE)
set(LIBS ${LIBS} pthread dl)
set(LIBS ${LIBS} pthread)
endif()
if (STATIC_LIBS)