mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
python: Fixes for building python modules
Moved src include AFTER setter for PYTHONBUILD_VERSION. In this way, the src CMakeLists has a valid PYTHONBUILD_VERSION str. Call find_package on PythonInterp prior to finding the libs (recommended). Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -178,7 +178,8 @@ endmacro()
|
||||
if (SWIG_FOUND)
|
||||
if (BUILDSWIGPYTHON)
|
||||
if(NOT PYTHONLIBS_FOUND)
|
||||
find_package (PythonLibs ${PYTHONBUILD_VERSION} REQUIRED)
|
||||
find_package (PythonInterp ${PYTHONBUILD_VERSION} EXACT REQUIRED)
|
||||
find_package (PythonLibs ${PYTHONBUILD_VERSION} EXACT REQUIRED)
|
||||
string (REPLACE "." ";" PYTHON_VERSION_LIST ${PYTHONLIBS_VERSION_STRING})
|
||||
list (GET PYTHON_VERSION_LIST 0 PYTHON_VERSION_MAJOR)
|
||||
list (GET PYTHON_VERSION_LIST 1 PYTHON_VERSION_MINOR)
|
||||
|
Reference in New Issue
Block a user