diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-08-01 14:07:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-08-01 14:07:00 +0200 |
commit | 7d898e638abad8267420f8c0d827d21f716b8977 (patch) | |
tree | 897a31950ba0a345f05162e4e8616f26e1b69446 /cmake | |
parent | b930dd608bf95ecc3f89007313ba8ab8b1935ee5 (diff) |
fix clang warnings
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 2 | ||||
-rw-r--r-- | cmake/opentrack-qt.cmake | 4 |
2 files changed, 5 insertions, 1 deletions
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}") |