We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb33ade commit eac4242Copy full SHA for eac4242
examples/CMakeLists.txt
@@ -9,6 +9,10 @@ if(POLICY CMP0135)
9
cmake_policy(SET CMP0135 OLD)
10
endif()
11
12
+# Generator expressions
13
+set(IS_WIN32 "$<BOOL:${WIN32}>")
14
+set(IS_NOT_WIN32 "$<NOT:${IS_WIN32}>")
15
+
16
# Deps
17
include(FetchContent)
18
include(CMakeDependentOption)
@@ -33,7 +37,7 @@ target_include_directories(http PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../src)
33
37
target_link_libraries(http PUBLIC OpenSSL::SSL OpenSSL::Crypto Boost::asio)
34
38
target_compile_options(http
35
39
PRIVATE $<$<BOOL:${HTTP_BUILD_FUZZERS}>:-fprofile-instr-generate -fcoverage-mapping>
36
- PUBLIC -Wall)
40
+ PUBLIC $<${IS_NOT_WIN32}:-Wall>)
41
42
# Examples
43
function(add_example target_name)
0 commit comments