Skip to content

Commit

Permalink
only use major and minor number
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyinz committed May 17, 2024
1 parent 65573cb commit cce458e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cxx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ else()
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE
)
string(REGEX MATCH "Python ([0-9]+\\.[0-9]+\\.[0-9]+)" _ ${PYTHON_VERSION_OUTPUT})

string(REGEX MATCH "Python ([0-9]+\\.[0-9]+)" _ ${PYTHON_VERSION_OUTPUT})
set(MY_PYTHON_VERSION ${CMAKE_MATCH_1})

message(STATUS "Found Python version: ${MY_PYTHON_VERSION}")
Expand Down

0 comments on commit cce458e

Please sign in to comment.