Skip to content

Commit

Permalink
Merge pull request ceph#44007 from tchaikov/wip-cmake-python3.10
Browse files Browse the repository at this point in the history
cmake: check for python(\d)\.(\d+) when building boost

Reviewed-by: Casey Bodley <cbodley@redhat.com>
  • Loading branch information
tchaikov committed Nov 23, 2021
2 parents 6017132 + 66b1e8c commit 292b9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/BuildBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function(do_build_boost root_dir version)
if(c MATCHES "^python([0-9])\$")
set(with_python_version "${CMAKE_MATCH_1}")
list(APPEND boost_with_libs "python")
elseif(c MATCHES "^python([0-9])\\.?([0-9])\$")
elseif(c MATCHES "^python([0-9])\\.?([0-9]+)\$")
set(with_python_version "${CMAKE_MATCH_1}.${CMAKE_MATCH_2}")
list(APPEND boost_with_libs "python")
else()
Expand Down

0 comments on commit 292b9a3

Please sign in to comment.