From 66fdcc742a512f52d121999967dabed8a50eb0e0 Mon Sep 17 00:00:00 2001 From: bjorn Date: Wed, 24 Oct 2018 09:52:25 -0700 Subject: [PATCH] CMakeLists: Improve LOVR_USE_OCULUS error reporting; --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 37154f80..993db794 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -280,7 +280,10 @@ if(LOVR_ENABLE_HEADSET AND LOVR_USE_OPENVR) endif() # 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") set(OCULUS_BUILD_TYPE "Release") else()