From 3ceff8b7bc71ac1c89897ccb4a58d2917f38500d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 21 Oct 2019 14:48:17 +1100 Subject: CMake: fix building as a Python module on macOS Caused by c553b790fc781 --- source/creator/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/creator/CMakeLists.txt') 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 -- cgit v1.2.3