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:
authorBrecht Van Lommel <brecht@blender.org>2022-09-15 19:15:03 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-09-15 19:27:02 +0300
commitf70fac6382b78ad3a4b4288372026f2f8213b918 (patch)
tree609a36c4884c897505f4aec0ad84b1050e13f256 /source/creator
parent5228b0b74fdb006c0ddb0f61bc1f6736f3fd7cb5 (diff)
Python: fix failing bpy build with full release config on Windows
* Fix issue with different build and install paths. * Fix issue with oneAPI kernel build. Ref D15957
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 050bc8ee608..210014c1585 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -344,10 +344,10 @@ if(UNIX AND NOT APPLE)
elseif(WIN32)
if(WITH_PYTHON_MODULE)
- set(TARGETDIR_BPY $<TARGET_FILE_DIR:blender>)
- set(TARGETDIR_VER $<TARGET_FILE_DIR:blender>/${BLENDER_VERSION})
+ set(TARGETDIR_BPY ${CMAKE_INSTALL_PREFIX_WITH_CONFIG}/bpy)
+ set(TARGETDIR_VER ${CMAKE_INSTALL_PREFIX_WITH_CONFIG}/bpy/${BLENDER_VERSION})
# Important the DLL's are next to `__init__.pyd` otherwise it won't load.
- set(TARGETDIR_LIB $<TARGET_FILE_DIR:blender>)
+ set(TARGETDIR_LIB ${CMAKE_INSTALL_PREFIX_WITH_CONFIG}/bpy)
else()
set(TARGETDIR_VER ${BLENDER_VERSION})
set(TARGETDIR_TEXT .)