py3: gathering diff for CMakeList.txt
fe96347c28039e97a0acdc37f7df9861ffc96eda 33073603bd3b20a2debb9444a7247266f658baaa 6400fcca2cb8f5fde95013d4de97c2c45f3bb4e7 7c50633c8efc6d65d96f1b6f820c89320eabe1dc
This commit is contained in:
parent
4db04840b1
commit
81884f787a
|
@ -531,6 +531,13 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||
MESSAGE(FATAL_ERROR "=================================\n"
|
||||
"Python not found, install Python!\n"
|
||||
"=================================\n")
|
||||
ELSE(NOT PYTHONLIBS_FOUND)
|
||||
# prevent python3 lower than 3.3 (not enough utf8<->unicode tools)
|
||||
IF(PYTHON_VERSION_MAJOR GREATER 3)
|
||||
IF(PYTHON_VERSION_MINOR LESS 5)
|
||||
MESSAGE(FATAL_ERROR "To build FreeCAD with Python3, you need at least version 3.5\n")
|
||||
ENDIF(PYTHON_VERSION_MINOR LESS 5)
|
||||
ENDIF(PYTHON_VERSION_MAJOR GREATER 3)
|
||||
ENDIF(NOT PYTHONLIBS_FOUND)
|
||||
|
||||
# -------------------------------- pcl ----------------------------------
|
||||
|
@ -589,7 +596,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||
|
||||
# Salome SMESH sources are under src/3rdParty now
|
||||
IF(BUILD_SMESH)
|
||||
#if we use smesh we definitely also need vtk, no matter of external or internal smesh
|
||||
#if we use smesh we definitly also need vtk, no matter of external or internal smesh
|
||||
set (VTK_COMPONENTS
|
||||
vtkCommonCore
|
||||
vtkCommonDataModel
|
||||
|
@ -897,8 +904,9 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||
endif()
|
||||
else()
|
||||
# set(PYTHON_SUFFIX -python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
|
||||
SET(PYTHON_SUFFIX -python2.7) # for shiboken
|
||||
SET(PYTHON_BASENAME -python2.7) # for PySide
|
||||
# below are two variables that can be left empty for standard python, but must be set by the user for different python versions such as 3.5
|
||||
SET(PYTHON_SUFFIX "" CACHE STRING "Shiboken cmake file sufix. If left empty, system default python version will be used: <ShibokenConfigPYTHON_SUFFIX.cmake>")
|
||||
SET(PYTHON_BASENAME "" CACHE STRING "Same as PYTHON_SUFFIX but for PySide. if left empty, PYTHON_SUFFIX will be used: <PySideConfigPYTHON_BASENAME.cmake>")
|
||||
|
||||
if(DEFINED MACPORTS_PREFIX)
|
||||
find_package(Shiboken REQUIRED HINTS "${PYTHON_LIBRARY_DIR}/cmake")
|
||||
|
|
Loading…
Reference in New Issue
Block a user