aboutsummaryrefslogtreecommitdiff
path: root/math/py-or-tools/files/patch-cmake_python.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-or-tools/files/patch-cmake_python.cmake')
-rw-r--r--math/py-or-tools/files/patch-cmake_python.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/py-or-tools/files/patch-cmake_python.cmake b/math/py-or-tools/files/patch-cmake_python.cmake
new file mode 100644
index 000000000000..9354ff701736
--- /dev/null
+++ b/math/py-or-tools/files/patch-cmake_python.cmake
@@ -0,0 +1,11 @@
+--- cmake/python.cmake.orig 2020-08-03 18:30:02 UTC
++++ cmake/python.cmake
+@@ -23,7 +23,7 @@ if(UNIX AND NOT APPLE)
+ endif()
+
+ # Find Python
+-find_package(Python REQUIRED COMPONENTS Interpreter Development)
++find_package(Python ${FREEBSD_PYTHON_VER} EXACT REQUIRED COMPONENTS Interpreter Development)
+
+ if(Python_VERSION VERSION_GREATER_EQUAL 3)
+ list(APPEND CMAKE_SWIG_FLAGS "-py3")