From 052098268248193f8cb6f6eb9aaf7fab04620efc Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Sun, 8 Mar 2015 20:48:32 +0000 Subject: cmake: Pass GNU -Wno-foo flags to Clang too. --- thirdparty/libbacktrace/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thirdparty/libbacktrace') 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 () -- cgit v1.2.3