summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-macros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/opentrack-macros.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)