Skip to content

Commit 9dacc03

Browse files
committed
Fiddling yet again with CMakeLists.txt files.
1 parent e6d6335 commit 9dacc03

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 2.6)
77
project(CPP-NETLIB)
88
set(Boost_USE_STATIC_LIBS ON)
99
set(Boost_USE_MULTI_THREADED ON)
10-
find_package( Boost 1.43.0 REQUIRED unit_test_framework system regex date_time thread filesystem )
10+
find_package( Boost 1.45.0 REQUIRED unit_test_framework system regex date_time thread filesystem program_options)
1111
find_package( OpenSSL )
1212
find_package( Threads )
1313
set(CMAKE_VERBOSE_MAKEFILE true)
@@ -19,6 +19,11 @@ endif()
1919
if (Boost_FOUND)
2020
include_directories(${Boost_INCLUDE_DIRS})
2121
endif()
22+
23+
if (OpenSSL_FOUND)
24+
add_definitions(-DBOOST_NETWORK_ENABLE_HTTPS)
25+
endif()
26+
2227
enable_testing()
2328
add_subdirectory(libs/network/src)
2429
add_subdirectory(libs/network/test)

libs/network/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
# boost_network_uri
88
include_directories(${CPP-NETLIB_SOURCE_DIR})
9+
910
set(CPP-NETLIB_URI_SRCS uri/parse.cpp)
1011
add_library(cppnetlib-uri-parsers ${CPP-NETLIB_URI_SRCS})
1112

0 commit comments

Comments
 (0)