[Bf-blender-cvs] [5bf3ddd20f1] cycles_oneapi: Build: fix OCLOC_INSTALL_DIR existence check
Xavier Hallade
noreply at git.blender.org
Thu May 19 19:14:36 CEST 2022
Commit: 5bf3ddd20f164441d39baa13e4689056364efa7c
Author: Xavier Hallade
Date: Thu May 19 19:14:09 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rB5bf3ddd20f164441d39baa13e4689056364efa7c
Build: fix OCLOC_INSTALL_DIR existence check
===================================================================
M intern/cycles/kernel/CMakeLists.txt
===================================================================
diff --git a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt
index 16e4aa88dba..39f25efacf0 100644
--- a/intern/cycles/kernel/CMakeLists.txt
+++ b/intern/cycles/kernel/CMakeLists.txt
@@ -767,7 +767,7 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
if(NOT OCLOC_INSTALL_DIR)
set(OCLOC_INSTALL_DIR ${sycl_compiler_root}/../lib/ocloc)
endif()
- if(WITH_CYCLES_ONEAPI_BINARIES AND NOT EXISTS OCLOC_INSTALL_DIR)
+ if(WITH_CYCLES_ONEAPI_BINARIES AND NOT EXISTS ${OCLOC_INSTALL_DIR})
message(FATAL_ERROR "WITH_CYCLES_ONEAPI_BINARIES requires ocloc but ${OCLOC_INSTALL_DIR} directory doesn't exist."
" A different ocloc directory can be set using OCLOC_INSTALL_DIR cmake variable.")
endif()
More information about the Bf-blender-cvs
mailing list