From 8a113aa83cd0eb0ae548f719aa85f5bd7a1d6630 Mon Sep 17 00:00:00 2001 From: Maksim Andrianov Date: Tue, 26 Jun 2018 16:56:58 +0300 Subject: [PATCH] -Wno-noexcept-type removed for clang --- CMakeLists.txt | 6 ++++-- 1 file 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)