Skip to content

Commit

Permalink
Merge pull request #599 from mthcrts/mc-fix-pylibs-version
Browse files Browse the repository at this point in the history
fix pythonlibs version cleanup (ex.: 3.9.19+)
  • Loading branch information
thelfer authored Jul 11, 2024
2 parents b904a3b + a4ba62e commit bd9ffdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ if(enable-python OR enable-python-bindings)
message(STATUS "python include path ${PYTHON_INCLUDE_DIRS}")
message(STATUS "python libraries path ${PYTHON_LIBRARY_PATH}")
message(STATUS "python library ${PYTHON_LIBRARY}")
string(REGEX REPLACE "[a-z]+.*$" "" PYTHONLIBS_VERSION_CLEANED "${PYTHONLIBS_VERSION_STRING}")
string(REGEX REPLACE "[-a-z+]+.*$" "" PYTHONLIBS_VERSION_CLEANED "${PYTHONLIBS_VERSION_STRING}")
find_package(PythonInterp ${PYTHONLIBS_VERSION_CLEANED} REQUIRED)
message(STATUS "python interpreter ${PYTHON_EXECUTABLE}")
if(NOT TFEL_PYTHON_SITE_PACKAGES_DIR)
Expand Down

0 comments on commit bd9ffdc

Please sign in to comment.