Added
Link Here
|
1 |
--- Modules/FindBoost.cmake.orig 2018-03-28 11:16:49 UTC |
2 |
+++ Modules/FindBoost.cmake |
3 |
@@ -55,6 +55,7 @@ |
4 |
# (or BOOSTROOT) |
5 |
# BOOST_INCLUDEDIR - Preferred include directory e.g. <prefix>/include |
6 |
# BOOST_LIBRARYDIR - Preferred library directory e.g. <prefix>/lib |
7 |
+# BOOST_PYTHON_SUFFIX - Preferred Python version |
8 |
# Boost_NO_SYSTEM_PATHS - Set to ON to disable searching in locations not |
9 |
# specified by these hint variables. Default is OFF. |
10 |
# Boost_ADDITIONAL_VERSIONS |
11 |
@@ -1663,10 +1664,10 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS}) |
12 |
# Handle Python version suffixes |
13 |
unset(COMPONENT_PYTHON_VERSION_MAJOR) |
14 |
unset(COMPONENT_PYTHON_VERSION_MINOR) |
15 |
- if(${COMPONENT} MATCHES "^(python|mpi_python|numpy)([0-9])\$") |
16 |
+ if(${COMPONENT}${BOOST_PYTHON_SUFFIX} MATCHES "^(python|mpi_python|numpy)([0-9])\$") |
17 |
set(COMPONENT_UNVERSIONED "${CMAKE_MATCH_1}") |
18 |
set(COMPONENT_PYTHON_VERSION_MAJOR "${CMAKE_MATCH_2}") |
19 |
- elseif(${COMPONENT} MATCHES "^(python|mpi_python|numpy)([0-9])\\.?([0-9])\$") |
20 |
+ elseif(${COMPONENT}${BOOST_PYTHON_SUFFIX} MATCHES "^(python|mpi_python|numpy)([0-9])\\.?([0-9])\$") |
21 |
set(COMPONENT_UNVERSIONED "${CMAKE_MATCH_1}") |
22 |
set(COMPONENT_PYTHON_VERSION_MAJOR "${CMAKE_MATCH_2}") |
23 |
set(COMPONENT_PYTHON_VERSION_MINOR "${CMAKE_MATCH_3}") |