summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-13 12:49:13 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-13 12:49:13 +0200
commitb11aa7330fa3878b07641eb3e7400f7f1e68cbc0 (patch)
treed7554d4ee8556093de13790d5f566b2b78f5cc04 /cmake
parent3252beca3aa20fe5183a13029db831e4e121f6dc (diff)
cmake: disable all warnings for Qt moc-generated source files
The files are machine-generated and full of redundancies. With pedantic warnings it drowns the relevant stuff.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-macros.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/opentrack-macros.cmake b/cmake/opentrack-macros.cmake
index d84f9175..00e1ae30 100644
--- a/cmake/opentrack-macros.cmake
+++ b/cmake/opentrack-macros.cmake
@@ -28,6 +28,9 @@ function(opentrack_compat target)
if(MSVC)
set_target_properties(${target} PROPERTIES LINK_FLAGS "${msvc-subsystem} /DEBUG /OPT:ICF")
endif()
+ if(NOT MSVC)
+ set_property(SOURCE ${${target}-moc} APPEND_STRING PROPERTY COMPILE_FLAGS "-w -Wno-error")
+ endif()
endfunction()
macro(opentrack_library n dir)