Pārlūkot izejas kodu

Merge branch 'cmake_fix' of stefan.schmidt/ID2T-toolkit into master

Carlos Garcia 6 gadi atpakaļ
vecāks
revīzija
cf64e91703
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      code_boost/src/CMakeLists.txt

+ 1 - 0
code_boost/src/CMakeLists.txt

@@ -58,6 +58,7 @@ IF (Boost_FOUND)
     # Find the boost python 3 component
     EXECUTE_PROCESS(COMMAND python3 --version OUTPUT_VARIABLE PY_VERSION)
     STRING(REGEX REPLACE "Python ([0-9]+)\.([0-9]+)\.[0-9]+" "python-py\\1\\2" PY_VERSION ${PY_VERSION})
+    STRING(STRIP ${PY_VERSION} PY_VERSION)
     SET(PYTHON_VERSIONS python3 ${PY_VERSION} python-py35 python-py34 python-py33 python-py32)
     FOREACH(VERSION ${PYTHON_VERSIONS})
       FIND_PACKAGE(Boost COMPONENTS ${VERSION} QUIET)