From f937ef6eb991fec0436d081d314cc3928024c7ea Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 30 Apr 2019 17:08:12 +0200 Subject: [PATCH] CMake: be compatible with clang 6 - Some of the pragmas in moc-warnings.h, intended to *reduce* warnings from MOC code, generate a warning in their own right. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fe0c0522..4be3d23ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -189,6 +189,7 @@ if( CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) -Wno-exit-time-destructors -Wno-missing-prototypes -Wno-documentation-unknown-command + -Wno-unknown-warning-option ) string( APPEND CMAKE_CXX_FLAGS " ${CLANG_WARNINGS}" ) endforeach()