opnsense-ports/math/py-or-tools/files/patch-cmake_python.cmake
Franco Fichtner d32592e123 */*: sync with upstream
Taken from: HardenedBSD
2020-08-04 02:32:55 +02:00

11 lines
388 B
CMake

--- 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")