summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--SetFlags.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index 0c878d660..9d8e11e2d 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -279,6 +279,9 @@ macro(set_exe_flags)
# flags introduced in 3.2
add_flags_cxx("-Wno-documentation")
endif()
+ if ("${CLANG_VERSION}" VERSION_GREATER 3.4)
+ add_flags_cxx("-Wno-error=disabled-macro-expansion")
+ endif()
if ("${CLANG_VERSION}" VERSION_GREATER 3.5)
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-Wno-reserved-id-macro HAS_NO_RESERVED_ID_MACRO)
@@ -292,9 +295,6 @@ macro(set_exe_flags)
add_flags_cxx("-Wno-documentation-unknown-command")
endif()
endif()
- if ("${CLANG_VERSION}" VERSION_GREATER 3.5)
- add_flags_cxx("-Wno-error=disabled-macro-expansion")
- endif()
if ("${CLANG_VERSION}" VERSION_GREATER 3.7)
check_cxx_compiler_flag(-Wno-double-promotion HAS_NO_DOUBLE_PROMOTION)
if (HAS_NO_DOUBLE_PROMOTION)