summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r--SetFlags.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index d3a6aba86..206a1da8e 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -288,6 +288,12 @@ macro(set_exe_flags)
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)
+ add_flags_cxx("-Wno-double-promotion")
+ endif()
+ endif()
add_flags_cxx("-Wno-error=unused-command-line-argument")
endif()
endif()