File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ set(BUILD_TOOLS OFF) # VRS tools
22
22
set (BUILD_SAMPLES OFF ) # VRS sample code and sample apps
23
23
FetchContent_Declare (vrslib URL https://github.com/facebookresearch/vrs/archive/refs/tags/v1.1.0.zip )
24
24
FetchContent_MakeAvailable (vrslib )
25
- if (NOT MSVC )
26
- target_compile_options (vrslib PRIVATE -w ) # Disable all warnings for VRS source code
27
- endif ()
28
25
29
26
find_package (fmt REQUIRED )
30
27
@@ -112,6 +109,10 @@ else()
112
109
)
113
110
endif ()
114
111
112
+ target_compile_options (${TARGET_NAME} PRIVATE
113
+ -Wno-rerun-type # VRS source code breaks this
114
+ )
115
+
115
116
# CMAKE_COMPILE_WARNING_AS_ERROR is only directly supported starting in CMake `3.24`
116
117
# https://cmake.org/cmake/help/latest/prop_tgt/COMPILE_WARNING_AS_ERROR.html
117
118
if (CMAKE_COMPILE_WARNING_AS_ERROR )
You can’t perform that action at this time.
0 commit comments