CMake: Suppress giant OpenVR warnings;

This commit is contained in:
bjorn 2019-11-11 19:14:35 -08:00
parent 9ac34ff190
commit 23c36597fc
1 changed files with 3 additions and 0 deletions

View File

@ -446,6 +446,9 @@ if(LOVR_ENABLE_HEADSET)
if(LOVR_USE_OPENVR)
add_definitions(-DLOVR_USE_OPENVR)
target_sources(lovr PRIVATE src/modules/headset/openvr.c)
if(UNIX)
target_compile_options(lovr PRIVATE -Wno-typedef-redefinition)
endif()
endif()
if(LOVR_USE_OPENXR)
add_definitions(-DLOVR_USE_OPENXR)