1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-09-04 03:47:59 +00:00

Do no require six module if python is 3.x

This commit is contained in:
Carles Fernandez
2020-05-10 18:20:20 +02:00
parent a7928bf14c
commit 33696780bf

View File

@@ -79,9 +79,8 @@ else()
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
set(PYTHON_VERSION_MAJOR ${Python3_VERSION_MAJOR})
volk_python_check_module("mako >= 0.4.2" mako "mako.__version__ >= '0.4.2'" MAKO_FOUND)
volk_python_check_module("six - python 2 and 3 compatibility library" six "True" SIX_FOUND)
endif()
if(NOT Python3_FOUND OR NOT MAKO_FOUND OR NOT SIX_FOUND)
if(NOT Python3_FOUND OR NOT MAKO_FOUND)
find_package(Python2 COMPONENTS Interpreter)
if(Python2_FOUND)
set(PYTHON_EXECUTABLE ${Python2_EXECUTABLE})