mirror of https://github.com/bjornbytes/lovr.git
CMakeLists: Improve LOVR_USE_OCULUS error reporting;
This commit is contained in:
parent
9010af3ea4
commit
66fdcc742a
|
@ -280,7 +280,10 @@ if(LOVR_ENABLE_HEADSET AND LOVR_USE_OPENVR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Oculus SDK
|
# Oculus SDK
|
||||||
if (LOVR_ENABLE_HEADSET AND LOVR_USE_OCULUS AND LOVR_OCULUS_PATH)
|
if (LOVR_ENABLE_HEADSET AND LOVR_USE_OCULUS)
|
||||||
|
if(NOT LOVR_OCULUS_PATH)
|
||||||
|
message(FATAL_ERROR "LOVR_USE_OCULUS requires the LOVR_OCULUS_PATH to be set to the location of the Oculus Desktop SDK")
|
||||||
|
endif()
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
set(OCULUS_BUILD_TYPE "Release")
|
set(OCULUS_BUILD_TYPE "Release")
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in New Issue