diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-21 06:48:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-21 06:48:17 +0300 |
commit | 3ceff8b7bc71ac1c89897ccb4a58d2917f38500d (patch) | |
tree | d13102fbb36ac20a9b52091ab118004063986753 | |
parent | 71538eaad66b0d2a532df4b1f82e983fb6aed088 (diff) |
CMake: fix building as a Python module on macOS
Caused by c553b790fc781
-rw-r--r-- | source/creator/CMakeLists.txt | 6 |
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 |