Skip to content

Commit 9d8ae7b

Browse files
committed
Ignore warnings in VRS source code
1 parent 29b0c1d commit 9d8ae7b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ set(BUILD_TOOLS OFF) # VRS tools
2222
set(BUILD_SAMPLES OFF) # VRS sample code and sample apps
2323
FetchContent_Declare(vrslib URL https://github.com/facebookresearch/vrs/archive/refs/tags/v1.1.0.zip)
2424
FetchContent_MakeAvailable(vrslib)
25+
if(NOT MSVC)
26+
# Disable warnings for VRS source files:
27+
get_target_property(VRS_TYPE vrslib TYPE)
28+
if(VRS_TYPE STREQUAL "STATIC_LIBRARY")
29+
target_compile_options(vrslib PRIVATE -w) # Disable all warnings for VRS
30+
endif()
31+
endif()
2532

2633
find_package(fmt REQUIRED)
2734

0 commit comments

Comments
 (0)