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:
authorCampbell Barton <ideasman42@gmail.com>2019-10-21 06:48:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-21 06:48:17 +0300
commit3ceff8b7bc71ac1c89897ccb4a58d2917f38500d (patch)
treed13102fbb36ac20a9b52091ab118004063986753 /source/creator
parent71538eaad66b0d2a532df4b1f82e983fb6aed088 (diff)
CMake: fix building as a Python module on macOS
Caused by c553b790fc781
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 4da1d61a4f1..cb76aa94df3 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -854,8 +854,10 @@ elseif(WIN32)
)
endif()
elseif(APPLE)
- # Uppercase name for app bundle
- set_target_properties(blender PROPERTIES OUTPUT_NAME Blender)
+ if (NOT WITH_PYTHON_MODULE)
+ # Uppercase name for app bundle
+ set_target_properties(blender PROPERTIES OUTPUT_NAME Blender)
+ endif()
# handy install macro to exclude files, we use \$ escape for the "to"
# argument when calling so ${BUILD_TYPE} does not get expanded