CMake: install Python executable when its bundled

This commit is contained in:
Campbell Barton
2015-05-19 15:56:28 +10:00
parent d5a85f87b0
commit e698299e4f
3 changed files with 33 additions and 12 deletions

View File

@@ -494,6 +494,12 @@ if(UNIX AND NOT APPLE)
if(WITH_PYTHON)
if(WITH_PYTHON_INSTALL)
install(
FILES ${PYTHON_EXECUTABLE}
DESTINATION ${TARGETDIR_VER}/python/bin
)
# on some platforms (like openSUSE) Python is linked
# to be used from lib64 folder.
# determine this from Python's libraries path