Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim Andrianov <maksimandrianov1@gmail.com>2018-06-26 16:56:58 +0300
committerSlava <slovaricheg@gmail.com>2018-06-26 18:12:17 +0300
commit8a113aa83cd0eb0ae548f719aa85f5bd7a1d6630 (patch)
tree40106949231e119a1dc6b77aeab211056f61144c /CMakeLists.txt
parent3ddcc914e4a691bf5b6de8e3bbb59e9871d8f867 (diff)
-Wno-noexcept-type removed for clang
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e746ece555..9577d33d94 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -261,8 +261,10 @@ add_compile_options(
)
add_clang_compile_options("-Wshorten-64-to-32")
-add_clang_cpp_compile_options("-Wno-noexcept-type")
-add_gcc_cpp_compile_options("-Wno-noexcept-type")
+if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND
+ CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
+ add_gcc_cpp_compile_options("-Wno-noexcept-type")
+endif()
add_subdirectory(base)
add_subdirectory(coding)