Skip to content

Commit

Permalink
fix pythonlibs version cleanup (ex.: 3.9.19+)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Courtois committed Jul 11, 2024
1 parent b904a3b commit a4ba62e
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 a4ba62e

Please sign in to comment.