Fix #23099: cmake/mac did not copy the scripts/ directory correct for install.

This commit is contained in:
Brecht Van Lommel
2010-08-04 16:05:19 +00:00
parent 25f1741517
commit 27a0b9bef3

View File

@@ -275,7 +275,7 @@ IF(WITH_INSTALL)
SET(PYTHON_ZIP "python_${CMAKE_OSX_ARCHITECTURES}.zip")
ADD_CUSTOM_COMMAND(
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
COMMAND cp -Rf ${CMAKE_SOURCE_DIR}/release/scripts ${TARGETDIR}/blender.app/Contents/MacOS/scripts/
COMMAND cp -Rf ${CMAKE_SOURCE_DIR}/release/scripts ${TARGETDIR}/blender.app/Contents/MacOS/
COMMAND rm -Rf ${TARGETDIR}/blender.app/Contents/MacOS/python/
COMMAND mkdir ${TARGETDIR}/blender.app/Contents/MacOS/python/
COMMAND unzip -q ${LIBDIR}/release/${PYTHON_ZIP} -d ${TARGETDIR}/blender.app/Contents/MacOS/python/