summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake2
-rw-r--r--cmake/opentrack-qt.cmake4
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}")