Make Boost.Python3 cmake script work properly on Debian again
This commit is contained in:
parent
1aa3d5af6e
commit
7143505eec
@ -40,6 +40,8 @@ macro( find_boost_python3 boost_version python_version found_var )
|
|||||||
break()
|
break()
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
if (NOT ${found_var})
|
||||||
# The following loop changes the searched name for Gentoo based distributions
|
# The following loop changes the searched name for Gentoo based distributions
|
||||||
# turns "3.4.123abc" into "3.4"
|
# turns "3.4.123abc" into "3.4"
|
||||||
string( REGEX REPLACE "([0-9]+)\\.([0-9]+)\\..*" "\\1.\\2" _fbp_python_short_version ${python_version} )
|
string( REGEX REPLACE "([0-9]+)\\.([0-9]+)\\..*" "\\1.\\2" _fbp_python_short_version ${python_version} )
|
||||||
@ -51,4 +53,5 @@ macro( find_boost_python3 boost_version python_version found_var )
|
|||||||
break()
|
break()
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
Loading…
Reference in New Issue
Block a user