diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-09-15 19:15:03 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-09-15 19:27:02 +0300 |
commit | f70fac6382b78ad3a4b4288372026f2f8213b918 (patch) | |
tree | 609a36c4884c897505f4aec0ad84b1050e13f256 /source/creator | |
parent | 5228b0b74fdb006c0ddb0f61bc1f6736f3fd7cb5 (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.txt | 6 |
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 .) |