Disable building Oculus plugin under VS 2022

This commit is contained in:
Dale Glass 2023-12-05 08:02:38 -08:00
parent 3e4a4119dc
commit deeb1d7505

View file

@ -13,12 +13,17 @@ list(REMOVE_ITEM PLUGIN_SUBDIRS "CMakeFiles")
# client-side plugins
if (NOT SERVER_ONLY AND NOT ANDROID)
if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
set(DIR "oculus")
add_subdirectory(${DIR})
set(DIR "openvr")
add_subdirectory(${DIR})
set(DIR "oculusLegacy")
add_subdirectory(${DIR})
if (NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") AND (MSVC_VERSION LESS 1930)))
# Check if we're building on MSVC 2022. If so, Oculus plugin fails to build.
set(DIR "oculus")
add_subdirectory(${DIR})
set(DIR "openvr")
add_subdirectory(${DIR})
set(DIR "oculusLegacy")
add_subdirectory(${DIR})
else()
message(WARNING "Building under ${CMAKE_CXX_COMPILER_ID}, MSVC Version ${MSVC_VERSION}. Oculus plugin unsupported, disabling.")
endif()
endif()
set(DIR "hifiSdl2")