summarylogtreecommitdiffstats
path: root/dependencies.patch
diff options
context:
space:
mode:
authorAndrew Anderson2018-10-12 09:36:52 +0100
committerAndrew Anderson2018-10-12 09:36:52 +0100
commit56cae31f9dbef27e1891dcdf8064fc059e93ea5d (patch)
tree4b1d95d34f1ae8484ec552fc0180cc9eb9dcf4d9 /dependencies.patch
parent01b7a6bbbbf46783fc7b7a5d30fba8758194f545 (diff)
downloadaur-56cae31f9dbef27e1891dcdf8064fc059e93ea5d.tar.gz
Fix boost stuff
Diffstat (limited to 'dependencies.patch')
-rw-r--r--dependencies.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/dependencies.patch b/dependencies.patch
new file mode 100644
index 000000000000..b37affd0ac62
--- /dev/null
+++ b/dependencies.patch
@@ -0,0 +1,23 @@
+--- Dependencies.cmake 2018-08-11 16:43:41.986780859 +0200
++++ Dependencies.cmake.new 2018-08-11 16:48:27.581959509 +0200
+@@ -345,7 +345,7 @@
+ # Find the matching boost python implementation
+ set(version ${PYTHONLIBS_VERSION_STRING})
+
+- STRING( REGEX REPLACE "[^0-9]" "" boost_py_version ${version} )
++ STRING( REGEX MATCH "[0-9]" boost_py_version ${version} )
+ find_package(Boost 1.46 COMPONENTS "python-py${boost_py_version}")
+ set(Boost_PYTHON_FOUND ${Boost_PYTHON-PY${boost_py_version}_FOUND})
+
+@@ -356,6 +356,11 @@
+ find_package(Boost 1.46 COMPONENTS "python-py${boost_py_version}")
+ set(Boost_PYTHON_FOUND ${Boost_PYTHON-PY${boost_py_version}_FOUND})
+
++ if(NOT Boost_PYTHON_FOUND)
++ find_package(Boost 1.46 COMPONENTS "python${boost_py_version}")
++ set(Boost_PYTHON_FOUND ${Boost_PYTHON${boost_py_version}_FOUND})
++ endif()
++
+ STRING( REGEX MATCHALL "([0-9.]+).[0-9]+" has_more_version ${version} )
+ if("${has_more_version}" STREQUAL "")
+ break()