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

Enable build of cpp-netlib as shared libraries#165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deanberris merged 5 commits intocpp-netlib:masterfromtorbjoernk:cmake-shared-libs
Nov 4, 2012
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
examples are working with shared lib
'cppnetlib-utils-thread_pool' had to be added to the list of linkedlibraries for 'cppnetlib-http-server'. For the static case this was nota problem but in the shared case symbols were missing.Listing external shared or static libraries in 'add_dependencies' is notrequired. This CMake command is for adding dependencies betweendifferent targets defined by 'add_executable', 'add_library' or'add_custom_target'.
  • Loading branch information
@torbjoernk
torbjoernk committedNov 4, 2012
commit8fdaa5ab793b88595629356123e7845c2aeba662
3 changes: 0 additions & 3 deletionsCMakeLists.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,9 +16,6 @@ find_package( ICU )

if(BUILD_SHARED_LIBS)
set(Boost_USE_STATIC_LIBS OFF)
# TODO/NOTE:
# the examples won't compile with the current setup and shared libraries yet
set(BUILD_EXAMPLES OFF)
else()
set(Boost_USE_STATIC_LIBS ON)
endif()
Expand Down
4 changes: 2 additions & 2 deletionslibs/network/src/CMakeLists.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -99,7 +99,6 @@ set(CPP-NETLIB_HTTP_SERVER_SRCS
)
add_library(cppnetlib-http-server ${CPP-NETLIB_HTTP_SERVER_SRCS})
add_dependencies(cppnetlib-http-server
# ${Boost_LIBRARIES}
cppnetlib-constants
cppnetlib-uri
cppnetlib-message
Expand All@@ -108,6 +107,7 @@ add_dependencies(cppnetlib-http-server
cppnetlib-http-message
cppnetlib-http-message-wrappers
cppnetlib-http-server-parsers
cppnetlib-utils-thread_pool
)
target_link_libraries(cppnetlib-http-server
${Boost_LIBRARIES}
Expand All@@ -119,6 +119,7 @@ target_link_libraries(cppnetlib-http-server
cppnetlib-http-message
cppnetlib-http-message-wrappers
cppnetlib-http-server-parsers
cppnetlib-utils-thread_pool
)
foreach (src_file ${CPP-NETLIB_HTTP_SERVER_SRCS})
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
Expand DownExpand Up@@ -150,7 +151,6 @@ set(CPP-NETLIB_HTTP_CLIENT_SRCS
http/client.cpp)
add_library(cppnetlib-http-client ${CPP-NETLIB_HTTP_CLIENT_SRCS})
add_dependencies(cppnetlib-http-client
# ${Boost_LIBRARIES}
cppnetlib-constants
cppnetlib-uri
cppnetlib-message
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp