mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 01:11:10 +03:00
cmake: add BUILDPYTHON3 flag
Use the same methodology as in mraa, by default build for python2, if requested use python3 for everything Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
a48f457057
commit
10d784ea7e
@ -140,13 +140,7 @@ macro(upm_doxygen)
|
||||
endmacro()
|
||||
|
||||
if (SWIG_FOUND)
|
||||
if(BUILDSWIGPYTHON)
|
||||
find_package (PythonLibs)
|
||||
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)
|
||||
endif(BUILDSWIGPYTHON)
|
||||
if(BUILDSWIGNODE)
|
||||
if (BUILDSWIGNODE)
|
||||
if(NOT NODE_FOUND)
|
||||
find_package(Node)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user