]> granicus.if.org Git - transmission/commitdiff
fixup! fix: disable warnings for 3rd party code
authorCharles Kerr <ckerr@github.com>
Mon, 18 Feb 2019 23:22:39 +0000 (23:22 +0000)
committerCharles Kerr <ckerr@github.com>
Mon, 18 Feb 2019 23:22:39 +0000 (23:22 +0000)
libtransmission/CMakeLists.txt

index ec7dda6fa83a2234117081c346c8d3a977ddfd45..0524edb39d4beacd8b22c60adee5dceca3772164 100644 (file)
@@ -7,7 +7,7 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
   set(DISABLE_WARNINGS -w)
 elseif(CMAKE_C_COMPILER_ID STREQUAL "Clang")
   set(DISABLE_WARNINGS -Wno-everything)
-elseif(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
+elseif(MSVC)
   set(DISABLE_WARNINGS /w)
 endif()
 set_source_files_properties(${THIRD_PARTY_SOURCES} PROPERTIES COMPILE_FLAGS ${DISABLE_WARNINGS})