Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2022-06-27 11:50:48 +0300
committerSergey Sharybin <sergey@blender.org>2022-06-27 11:52:09 +0300
commit57f74289dfa2e258893e82fb8f75bfc5157f3d9c (patch)
tree4573eaed043b33d55a0b543bf31d8a5198681e4c /intern/cycles
parenta832f103ac034a9f523798d08294529f73d6bb6f (diff)
Cycles: Tweak SYCL dependencies install folders
Mainly avoid relative path for the Cycles standalone. This still needs to be looked into a bit closer, but it does seem safer to use same path as for the Cycles application. Also clarify why a level up path is used for Blender.
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/kernel/CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt
index 1453f1e47f1..ccd694dfdfd 100644
--- a/intern/cycles/kernel/CMakeLists.txt
+++ b/intern/cycles/kernel/CMakeLists.txt
@@ -884,7 +884,16 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
sycl.dll
pi_level_zero.dll
)
- delayed_install("${sycl_compiler_root}" "${SYCL_RUNTIME_DEPENDENCIES}" "../")
+ if(NOT WITH_BLENDER)
+ # For the Cycles standalone put libraries next to the Cycles application.
+ delayed_install("${sycl_compiler_root}" "${SYCL_RUNTIME_DEPENDENCIES}" ${CYCLES_INSTALL_PATH})
+ else()
+ # For Blender put the libraries next to the Blender executable.
+ #
+ # Note that the installation path in the delayed_install is relative to the versioned folder,
+ # which means we need to go one level up.
+ delayed_install("${sycl_compiler_root}" "${SYCL_RUNTIME_DEPENDENCIES}" "../")
+ endif()
elseif(UNIX AND NOT APPLE)
file(GLOB SYCL_RUNTIME_DEPENDENCIES
${sycl_compiler_root}/../lib/libsycl.so