diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-08-20 18:18:08 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-08-20 18:18:08 +0200 |
commit | a341419b047bd76cc3572f5d3906500a7112e202 (patch) | |
tree | 1dd7ee5497546420714dc673f48078a4565198d0 /SetFlags.cmake | |
parent | Merge pull request #2379 from cuberite/hunger (diff) | |
parent | Use container-based infrastructure for Travis (diff) | |
download | cuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar cuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar.gz cuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar.bz2 cuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar.lz cuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar.xz cuberite-a341419b047bd76cc3572f5d3906500a7112e202.tar.zst cuberite-a341419b047bd76cc3572f5d3906500a7112e202.zip |
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r-- | SetFlags.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake index ca5f1d289..9931e4b64 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -266,11 +266,18 @@ macro(set_exe_flags) add_flags_cxx("-Wno-documentation") endif() if ("${CLANG_VERSION}" VERSION_GREATER 3.5) + include(CheckCXXCompilerFlag) check_cxx_compiler_flag(-Wno-reserved-id-macro HAS_NO_RESERVED_ID_MACRO) + check_cxx_compiler_flag(-Wno-documentation-unknown-command HAS_NO_DOCUMENTATION_UNKNOWN) if (HAS_NO_RESERVED_ID_MACRO) # Use this flag to ignore error for a reserved macro problem in sqlite 3 add_flags_cxx("-Wno-reserved-id-macro") endif() + if (HAS_NO_DOCUMENTATION_UNKNOWN) + # Ignore another problem in sqlite + add_flags_cxx("-Wno-documentation-unknown-command") + endif() + add_flags_cxx("-Wno-format-pedantic") endif() endif() endif() |