diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-11 10:08:58 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-11 10:08:58 +0200 |
commit | 805564dcf2cf2f55fb4860f8224ae82edee75395 (patch) | |
tree | 1c385db00f41c6bcde72cca4d45dd10f6e4d8ef8 /src | |
parent | 76fb792544a794d22c439b6f2731f4be5911438e (diff) | |
download | minetest-805564dcf2cf2f55fb4860f8224ae82edee75395.tar.gz minetest-805564dcf2cf2f55fb4860f8224ae82edee75395.tar.bz2 minetest-805564dcf2cf2f55fb4860f8224ae82edee75395.zip |
Clang doesn't like -Wno-unused-but-set-variable
The release versions of CMake don't yet properly support flag checking
in Clang, so we need to exclude it explicitly for the time being.
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4d95da35b..883b809e2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -237,7 +237,7 @@ else() set(RELEASE_WARNING_FLAGS "") endif() - if(NOT APPLE) + if(NOT APPLE AND NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") CHECK_CXX_COMPILER_FLAG("-Wno-unused-but-set-variable" HAS_UNUSED_BUT_SET_VARIABLE_WARNING) if(HAS_UNUSED_BUT_SET_VARIABLE_WARNING) set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-unused-but-set-variable") |