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

Commit77efdb3

Browse files
author
Ximin Luo
committed
explicitly link dependencies into the shared library; under-linking is bad bad bad
1 parentbcb1bda commit77efdb3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎libs/network/src/CMakeLists.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ set_target_properties(cppnetlib-client-connections
3939
PROPERTIESVERSION${CPPNETLIB_VERSION_STRING}
4040
SOVERSION${CPPNETLIB_VERSION_MAJOR}
4141
PUBLIC_HEADER"${CPP-NETLIB_HEADERS}")
42+
if (OPENSSL_FOUND)
43+
target_link_libraries(cppnetlib-client-connections ssl crypto)
44+
endif ()
45+
if (Boost_FOUND)
46+
target_link_libraries(cppnetlib-client-connections boost_system)
47+
endif ()
4248
install(TARGETS cppnetlib-client-connections
4349
EXPORT cppnetlibTargets
4450
PUBLIC_HEADERDESTINATION${CMAKE_INSTALL_FULL_INCLUDEDIR}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp