summaryrefslogtreecommitdiff
path: root/thirdparty
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-03-08 20:48:32 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-03-08 20:48:32 +0000
commit052098268248193f8cb6f6eb9aaf7fab04620efc (patch)
tree47d3dfa0b9169aa9e9abac5bb2ce7087e06dc9ca /thirdparty
parentbe3b78ded8557a7dd7c700a8d7499893e8d25e43 (diff)
cmake: Pass GNU -Wno-foo flags to Clang too.
Diffstat (limited to 'thirdparty')
-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 ()