Browse Source

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

Carlos Garcia 6 years ago
parent
commit
cf64e91703
1 changed files with 1 additions and 0 deletions
  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)