Skip to content

Commit

Permalink
Merge pull request #133 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 f9c21b0 + 6ebdc18 commit eb00a51
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 @@ -41,7 +41,7 @@ if(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 HAVE_PYTHON)
Expand Down

0 comments on commit eb00a51

Please sign in to comment.