Skip to content

Commit 06fac5e

Browse files
committed
Try another fix
1 parent d2d889f commit 06fac5e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ 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-
target_compile_options(vrslib PRIVATE -w) # Disable all warnings for VRS source code
27-
endif()
2825

2926
find_package(fmt REQUIRED)
3027

@@ -112,6 +109,10 @@ else()
112109
)
113110
endif()
114111

112+
target_compile_options(${TARGET_NAME} PRIVATE
113+
-Wno-rerun-type # VRS source code breaks this
114+
)
115+
115116
# CMAKE_COMPILE_WARNING_AS_ERROR is only directly supported starting in CMake `3.24`
116117
# https://cmake.org/cmake/help/latest/prop_tgt/COMPILE_WARNING_AS_ERROR.html
117118
if(CMAKE_COMPILE_WARNING_AS_ERROR)

0 commit comments

Comments
 (0)