Commits

Chad Dombrova committed 23b152a

Update FindArnold.cmake to also use ARNOLD_HOME env var when attempting to locate arnold. ARNOLD_HOME is the variable used internally by solid angle build scripts.

Comments (0)

Files changed (1)

share/FindArnold.cmake

 # if local.cmake hasn't defined it already...
 if (NOT DEFINED ARNOLD_ROOT)
 	# if the environment variable isn't set...
-	if (NOT DEFINED ENV{ARNOLD_ROOT})
-		message(FATAL_ERROR "Could not find Arnold SDK. Please set ARNOLD_ROOT to point to the root directory of the Arnold SDK. This is the directory containing bin, include etc. Either add a set() statement to a local.cmake file in the source directory, or define it as an environment variable prior to building.")
+	if (DEFINED ENV{ARNOLD_ROOT})
+		set(ARNOLD_ROOT $ENV{ARNOLD_ROOT})
+	elseif (DEFINED ENV{ARNOLD_HOME})
+		set(ARNOLD_ROOT $ENV{ARNOLD_HOME})
+	else()
+		message(FATAL_ERROR "Could not find Arnold SDK. Please set ARNOLD_HOME to point to the root directory of the Arnold SDK. This is the directory containing bin, include etc. Either add a set() statement to a local.cmake file in the source directory, or define it as an environment variable prior to building.")
 	endif()
-	set(ARNOLD_ROOT $ENV{ARNOLD_ROOT})
 endif()
 message(STATUS "ARNOLD_ROOT is ${ARNOLD_ROOT}")