Skip to content

Commit a4dabd5

Browse files
committed
Applied some fixes to the build scripts (#131)
1 parent 39d7630 commit a4dabd5

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

libs/network/example/CMakeLists.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,23 @@ add_executable(hello_world_client http/hello_world_client.cpp)
2020
# add_executable(fileserver http/fileserver.cpp)
2121
#endif (UNIX)
2222
set(BOOST_CLIENT_LIBS
23-
${Boost_PROGRAM_OPTIONS_LIBRARY}
24-
${Boost_THREAD_LIBRARY}
2523
${Boost_CHRONO_LIBRARY}
2624
${Boost_DATE_TIME_LIBRARY}
27-
${Boost_REGEX_LIBRARY}
25+
${Boost_SYSTEM_LIBRARY}
2826
${Boost_FILESYSTEM_LIBRARY}
29-
${Boost_SYSTEM_LIBRARY})
30-
31-
set(BOOST_SERVER_LIBS
27+
${Boost_PROGRAM_OPTIONS_LIBRARY}
28+
${Boost_REGEX_LIBRARY}
3229
${Boost_THREAD_LIBRARY}
30+
)
31+
set(BOOST_SERVER_LIBS
3332
${Boost_CHRONO_LIBRARY}
34-
${Boost_SYSTEM_LIBRARY}
3533
${Boost_DATE_TIME_LIBRARY}
36-
${Boost_PROGRAM_OPTIONS_LIBRARY})
37-
34+
${Boost_SYSTEM_LIBRARY}
35+
${Boost_FILESYSTEM_LIBRARY}
36+
${Boost_PROGRAM_OPTIONS_LIBRARY}
37+
${Boost_THREAD_LIBRARY}
38+
)
39+
3840
target_link_libraries(uri_builder
3941
${BOOST_CLIENT_LIBS}
4042
${CMAKE_THREAD_LIBS_INIT}

libs/network/src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
include_directories(${CPP-NETLIB_SOURCE_DIR}/include)
1010
include_directories(${CPP-NETLIB_SOURCE_DIR})
11+
if (OPENSSL_FOUND)
12+
include_directories(${OPENSSL_INCLUDE_DIR})
13+
endif()
1114

1215
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
1316
if (HAVE_STD11)

libs/network/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if (Boost_FOUND)
3434
cppnetlib-message-directives
3535
cppnetlib-message-wrappers)
3636
if (OPENSSL_FOUND)
37+
include_directories(${OPENSSL_INCLUDE_DIR})
3738
target_link_libraries(cpp-netlib-${test} ${OPENSSL_LIBRARIES})
3839
endif()
3940
set_target_properties(cpp-netlib-${test}

0 commit comments

Comments
 (0)