Skip to content

Commit 5efcb2e

Browse files
committed
disable msvc warnings for paho lib
1 parent c1fdfe2 commit 5efcb2e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

external/paho_mqtt_c/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ if (paho_mqtt_c_FETCHED)
4141
if(TARGET ${tgt})
4242
target_compile_definitions("${tgt}" PRIVATE _WINSOCKAPI_ NOMINMAX WIN32_LEAN_AND_MEAN)
4343
if(MSVC)
44-
target_compile_options(${tgt} PRIVATE /WX-)
44+
target_compile_options(${tgt} PRIVATE /WX- /W0)
4545
endif()
4646
endif()
4747
endforeach()
48-
target_compile_options(Base64Test PRIVATE /WX-)
49-
target_compile_options(Sha1Test PRIVATE /WX-)
48+
if(MSVC)
49+
target_compile_options(Base64Test PRIVATE /WX- /W0)
50+
target_compile_options(Sha1Test PRIVATE /WX- /W0)
51+
endif()
5052
endif()
5153
endif()

0 commit comments

Comments
 (0)