Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit26487db

Browse files
committed
Use CMake variables to link dl
1 parent3f35908 commit26487db

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

‎CMakeLists.txt‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ if (OPENSSL_FOUND)
4545
include_directories(${OPENSSL_INCLUDE_DIR})
4646
endif()
4747

48-
if(CMAKE_SYSTEMMATCHES"Linux")
49-
find_library(DL_LIBRARY dl)
50-
if(NOT DL_LIBRARY)
51-
message(FATAL_ERROR"`dl` library not found")
52-
endif()
53-
endif()
54-
5548
if (${CMAKE_CXX_COMPILER_ID}MATCHES GNU)
5649
set (CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -Wall")
5750
endif()

‎libs/network/src/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include_directories(${CPP-NETLIB_SOURCE_DIR})
1313

1414
set(CPP-NETLIB_URI_SRCS uri/uri.cpp uri/schemes.cpp)
1515
sugar_add_library(cppnetlib-uri ${CPP-NETLIB_URI_SRCS})
16-
sugar_target_link_libraries(cppnetlib-uri${DL_LIBRARY})
16+
sugar_target_link_libraries(cppnetlib-uri${CMAKE_DL_LIBS})
1717

1818
set(CPP-NETLIB_HTTP_SERVER_SRCS server_request_parsers_impl.cpp)
1919
sugar_add_library(cppnetlib-server-parsers ${CPP-NETLIB_HTTP_SERVER_SRCS})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp