diff options
author | peterbell10 <peterbell10@live.co.uk> | 2020-05-05 23:52:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 23:52:14 +0200 |
commit | 57952505e522be868a5a8270d8670163b55ebade (patch) | |
tree | cf3c5544612b8a51075b498fa14dba8fe758d656 /SetFlags.cmake | |
parent | Require semi-colon at end of function-like macros (#4719) (diff) | |
download | cuberite-57952505e522be868a5a8270d8670163b55ebade.tar cuberite-57952505e522be868a5a8270d8670163b55ebade.tar.gz cuberite-57952505e522be868a5a8270d8670163b55ebade.tar.bz2 cuberite-57952505e522be868a5a8270d8670163b55ebade.tar.lz cuberite-57952505e522be868a5a8270d8670163b55ebade.tar.xz cuberite-57952505e522be868a5a8270d8670163b55ebade.tar.zst cuberite-57952505e522be868a5a8270d8670163b55ebade.zip |
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r-- | SetFlags.cmake | 6 |
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) |