summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thirdparty/libbacktrace/CMakeLists.txt2
-rw-r--r--thirdparty/snappy/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/libbacktrace/CMakeLists.txt b/thirdparty/libbacktrace/CMakeLists.txt
index fed008e2..5f9c0b02 100644
--- a/thirdparty/libbacktrace/CMakeLists.txt
+++ b/thirdparty/libbacktrace/CMakeLists.txt
@@ -54,7 +54,7 @@ if (FLAG_UNWIND_TABLES)
endif ()
# Adjust warnings
-if (CMAKE_COMPILER_IS_GNUCC)
+if (NOT MSVC)
add_definitions ("-Wno-switch -Wno-enum-compare")
endif ()
diff --git a/thirdparty/snappy/CMakeLists.txt b/thirdparty/snappy/CMakeLists.txt
index 18d1f4bb..f0b0cf02 100644
--- a/thirdparty/snappy/CMakeLists.txt
+++ b/thirdparty/snappy/CMakeLists.txt
@@ -4,7 +4,7 @@ add_definitions (
)
# Adjust warnings
-if (CMAKE_COMPILER_IS_GNUCXX)
+if (NOT MSVC)
add_definitions (-Wno-unused-function)
endif ()