mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 12:02:48 +02:00
Merge pull request #754 from daleglass-overte/disable-oculus-vs2022
Disable Oculus plugin on Visual Studio 2022
This commit is contained in:
commit
12da0473ab
1 changed files with 11 additions and 6 deletions
|
@ -13,12 +13,17 @@ list(REMOVE_ITEM PLUGIN_SUBDIRS "CMakeFiles")
|
||||||
# client-side plugins
|
# client-side plugins
|
||||||
if (NOT SERVER_ONLY AND NOT ANDROID)
|
if (NOT SERVER_ONLY AND NOT ANDROID)
|
||||||
if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
||||||
set(DIR "oculus")
|
if (NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") AND (MSVC_VERSION LESS 1930)))
|
||||||
add_subdirectory(${DIR})
|
# Check if we're building on MSVC 2022. If so, Oculus plugin fails to build.
|
||||||
set(DIR "openvr")
|
set(DIR "oculus")
|
||||||
add_subdirectory(${DIR})
|
add_subdirectory(${DIR})
|
||||||
set(DIR "oculusLegacy")
|
set(DIR "openvr")
|
||||||
add_subdirectory(${DIR})
|
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()
|
endif()
|
||||||
|
|
||||||
set(DIR "hifiSdl2")
|
set(DIR "hifiSdl2")
|
||||||
|
|
Loading…
Reference in a new issue