Skip to content

Commit 2e5b039

Browse files
committed
Merge pull request #326 from deanberris/0.10-devel
Preparation for 0.11 release.
2 parents e757294 + ce12fbe commit 2e5b039

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ else()
3737
endif()
3838

3939
set(Boost_USE_MULTI_THREADED ON)
40-
find_package( Boost 1.45.0 REQUIRED unit_test_framework system regex date_time thread filesystem program_options chrono )
40+
find_package( Boost 1.54.0 REQUIRED unit_test_framework system regex date_time thread filesystem program_options chrono )
4141
find_package( OpenSSL )
4242
find_package( Threads )
4343
set(CMAKE_VERBOSE_MAKEFILE true)
@@ -58,8 +58,18 @@ endif()
5858

5959
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
6060
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
61+
elseif (${CMAKE_CXX_COMPILER_ID} MATCHES Clang)
62+
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
63+
# We want to link in C++11 mode if we're using Clang and on OS X.
64+
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -ftemplate-depth=256 -std=c++11 -stdlib=libc++")
65+
else()
66+
# We just add the -Wall and a high enough template depth
67+
# flag for Clang in other systems.
68+
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -ftemplate-dempth=256")
69+
endif()
6170
endif()
6271

72+
6373
if (Boost_FOUND)
6474
if (MSVC)
6575
add_definitions(-D_SCL_SECURE_NO_WARNINGS)

libs/network/test/http/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ if (Boost_FOUND)
1717
request_linearize_test
1818
)
1919
foreach ( test ${TESTS} )
20-
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
21-
set_source_files_properties(${test}.cpp
22-
PROPERTIES COMPILE_FLAGS "-Wall")
23-
endif()
2420
add_executable(cpp-netlib-http-${test} ${test}.cpp)
2521
add_dependencies(cpp-netlib-http-${test}
2622
cppnetlib-uri)
@@ -43,10 +39,6 @@ if (Boost_FOUND)
4339
client_get_streaming_test
4440
)
4541
foreach ( test ${TESTS} )
46-
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
47-
set_source_files_properties(${test}.cpp
48-
PROPERTIES COMPILE_FLAGS "-Wall")
49-
endif()
5042
add_executable(cpp-netlib-http-${test} ${test}.cpp)
5143
add_dependencies(cpp-netlib-http-${test}
5244
cppnetlib-uri
@@ -72,10 +64,6 @@ if (Boost_FOUND)
7264
server_async_run_stop_concurrency
7365
)
7466
foreach ( test ${SERVER_API_TESTS} )
75-
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
76-
set_source_files_properties(${test}.cpp
77-
PROPERTIES COMPILE_FLAGS "-Wall")
78-
endif()
7967
add_executable(cpp-netlib-http-${test} ${test}.cpp)
8068
add_dependencies(cpp-netlib-http-${test} cppnetlib-server-parsers)
8169
target_link_libraries(cpp-netlib-http-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-server-parsers)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy