summaryrefslogtreecommitdiffhomepage
path: root/tracker-rs
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-12 15:42:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-12 15:42:59 +0200
commitf49b67b915dab844239068376478f10bf7ecf71b (patch)
tree01da88ac15695cfd2614b40548cf5c110d9ffbc2 /tracker-rs
parenta1f5e2953442655609c6bca03c32a962dd3f1711 (diff)
tracker/realsense: make GNU build less noisy
I'm only using it for Coverity builds and it's not expected to work with GNU.
Diffstat (limited to 'tracker-rs')
-rw-r--r--tracker-rs/rs_impl/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/tracker-rs/rs_impl/CMakeLists.txt b/tracker-rs/rs_impl/CMakeLists.txt
index 7148cdf1..d4bf0925 100644
--- a/tracker-rs/rs_impl/CMakeLists.txt
+++ b/tracker-rs/rs_impl/CMakeLists.txt
@@ -3,4 +3,12 @@ if(WIN32)
target_compile_definitions(opentrack-tracker-rs-impl PRIVATE -DUNICODE -D_UNICODE)
target_include_directories(opentrack-tracker-rs-impl PRIVATE SYSTEM "${SDK_REALSENSE}/include")
target_link_libraries(opentrack-tracker-rs-impl advapi32)
+
+ # for SDK headers
+ if(CMAKE_COMPILER_IS_GNUCC)
+ add_definitions(-fpermissive -Wno-error -w
+ #-Wno-missing-field-initializers -Wno-switch -Wno-sign-compare
+ #-Wno-unknown-pragmas -Wno-attributes
+ )
+ endif()
endif()