From 7d898e638abad8267420f8c0d827d21f716b8977 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 1 Aug 2019 14:07:00 +0200 Subject: fix clang warnings --- cmake/opentrack-boilerplate.cmake | 2 +- cmake/opentrack-qt.cmake | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index 614209da..ffa4ea02 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -208,7 +208,7 @@ function(otr_module n_) if(CMAKE_COMPILER_IS_CLANGXX AND (arg_EXECUTABLE OR NOT arg_BIN)) set(opts weak-vtables - #header-hygiene + header-hygiene ) foreach(k ${opts}) target_compile_options(${n} PRIVATE "-Wno-${k}") diff --git a/cmake/opentrack-qt.cmake b/cmake/opentrack-qt.cmake index b0d2de78..8c92483c 100644 --- a/cmake/opentrack-qt.cmake +++ b/cmake/opentrack-qt.cmake @@ -43,6 +43,10 @@ function(otr_qt2 n) -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_MESSAGELOGCONTEXT ) + if(CMAKE_COMPILER_IS_GNUCXX) + set_property(SOURCE ${${n}-moc} ${${n}-rcc} + APPEND_STRING PROPERTY COMPILE_FLAGS " -w -Wno-error ") + endif() endfunction() include_directories("${CMAKE_BINARY_DIR}") -- cgit v1.2.3