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

Commite79a43a

Browse files
committed
Merge pull requestcpp-netlib#318 from infinity0/0.10-devel
explicitly link dependencies into the shared library
2 parents194c2aa +7c7b2bf commite79a43a

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