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

Commitc30b4a5

Browse files
committed
Merge pull requestcpp-netlib#326 from deanberris/0.10-devel
Preparation for 0.11 release.
2 parentse79a43a +5f8a293 commitc30b4a5

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_THREADEDON)
40-
find_package( Boost 1.45.0 REQUIRED unit_test_frameworksystemregex date_time thread filesystem program_options chrono )
40+
find_package( Boost 1.54.0 REQUIRED unit_test_frameworksystemregex date_time thread filesystem program_options chrono )
4141
find_package( OpenSSL )
4242
find_package( Threads )
4343
set(CMAKE_VERBOSE_MAKEFILEtrue)
@@ -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-
PROPERTIESCOMPILE_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-
PROPERTIESCOMPILE_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-
PROPERTIESCOMPILE_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)

[8]ページ先頭

©2009-2025 Movatter.jp