We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1fdfe2 commit 5efcb2eCopy full SHA for 5efcb2e
1 file changed
external/paho_mqtt_c/CMakeLists.txt
@@ -41,11 +41,13 @@ if (paho_mqtt_c_FETCHED)
41
if(TARGET ${tgt})
42
target_compile_definitions("${tgt}" PRIVATE _WINSOCKAPI_ NOMINMAX WIN32_LEAN_AND_MEAN)
43
if(MSVC)
44
- target_compile_options(${tgt} PRIVATE /WX-)
+ target_compile_options(${tgt} PRIVATE /WX- /W0)
45
endif()
46
47
endforeach()
48
- target_compile_options(Base64Test PRIVATE /WX-)
49
- target_compile_options(Sha1Test PRIVATE /WX-)
+ if(MSVC)
+ target_compile_options(Base64Test PRIVATE /WX- /W0)
50
+ target_compile_options(Sha1Test PRIVATE /WX- /W0)
51
+ endif()
52
53
0 commit comments