Skip to content

Commit c8589b0

Browse files
ignore errors in librealsense2 headers
1 parent eb51fea commit c8589b0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

components/pango_video/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,16 @@ create_factory_registry_file( "${CMAKE_CURRENT_BINARY_DIR}/include/pangolin/fact
234234
target_sources(${COMPONENT} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/include/pangolin/factory/RegisterFactoriesVideoInterface.h")
235235
target_sources(${COMPONENT} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/include/pangolin/factory/RegisterFactoriesVideoOutputInterface.h")
236236

237+
# ignore errors in librealsense2 headers
238+
target_compile_options(${COMPONENT} PUBLIC
239+
-Wno-error=ignored-qualifiers
240+
-Wno-error=sign-compare
241+
-Wno-error=deprecated-copy
242+
-Wno-error=missing-field-initializers
243+
-Wno-error=missing-field-initializers
244+
-Wno-error=pessimizing-move
245+
)
246+
237247

238248
if(BUILD_TESTS)
239249
add_executable(test_video_uris ${CMAKE_CURRENT_LIST_DIR}/tests/tests_video_uri.cpp)

0 commit comments

Comments
 (0)