File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ if (Boost_FOUND)
16
16
utils_thread_pool
17
17
)
18
18
foreach (test ${TESTS} )
19
- set_source_files_properties (${test} .cpp
19
+ if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU )
20
+ set_source_files_properties (${test} .cpp
20
21
PROPERTIES COMPILE_FLAGS "-Wall" )
22
+ endif ()
21
23
add_executable (cpp-netlib-${test} ${test} .cpp )
22
24
add_dependencies (cpp-netlib-${test} cppnetlib-uri )
23
25
target_link_libraries (cpp-netlib-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-uri )
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ if (Boost_FOUND)
13
13
url_encoding_test
14
14
)
15
15
foreach (test ${TESTS} )
16
- set_source_files_properties (${test} .cpp
16
+ if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU )
17
+ set_source_files_properties (${test} .cpp
17
18
PROPERTIES COMPILE_FLAGS "-Wall" )
19
+ endif ()
18
20
add_executable (cpp-netlib-${test} ${test} .cpp )
19
21
add_dependencies (cpp-netlib-${test} cppnetlib-uri )
20
22
target_link_libraries (cpp-netlib-${test}
You can’t perform that action at this time.
0 commit comments