Skip to content

Commit 1350278

Browse files
authored
Port MinGW-w64 /W0 fix to development (PR realsenseai#15091) (realsenseai#15207)
2 parents 74e016a + f781554 commit 1350278

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CMake/security_flags_helper_functions.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ macro(disable_third_party_warnings target)
2323
get_target_property(target_type ${target} TYPE)
2424

2525
if (target_type STREQUAL "INTERFACE_LIBRARY")
26-
if (WIN32)
26+
if (MSVC)
2727
target_compile_options(${target} INTERFACE /W0)
2828
else()
2929
target_compile_options(${target} INTERFACE -w)
3030
endif()
3131
else()
32-
if (WIN32)
32+
if (MSVC)
3333
target_compile_options(${target} PRIVATE /W0)
3434
else()
3535
target_compile_options(${target} PRIVATE -w)

0 commit comments

Comments
 (0)