Commit: d3aac341e663725f14a7a68571baf63b3ccbcf5d
Author: Xavier Hallade
Date:   Thu May 19 19:35:18 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rBd3aac341e663725f14a7a68571baf63b3ccbcf5d

Build: normalize default ocloc path

===================================================================

M       intern/cycles/kernel/CMakeLists.txt

===================================================================

diff --git a/intern/cycles/kernel/CMakeLists.txt 
b/intern/cycles/kernel/CMakeLists.txt
index 39f25efacf0..e00c3d93200 100644
--- a/intern/cycles/kernel/CMakeLists.txt
+++ b/intern/cycles/kernel/CMakeLists.txt
@@ -765,7 +765,7 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
   get_filename_component(sycl_compiler_compiler_name ${SYCL_COMPILER} NAME_WE)
 
   if(NOT OCLOC_INSTALL_DIR)
-    set(OCLOC_INSTALL_DIR ${sycl_compiler_root}/../lib/ocloc)
+    cmake_path(SET OCLOC_INSTALL_DIR NORMALIZE 
"${sycl_compiler_root}/../lib/ocloc")
   endif()
   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."

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to