CMake: fix building as a Python module on macOS

Caused by c553b790fc
This commit is contained in:
Campbell Barton 2019-10-21 14:48:17 +11:00
parent 71538eaad6
commit 3ceff8b7bc
1 changed files with 4 additions and 2 deletions

View File

@ -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