aboutsummaryrefslogtreecommitdiff
path: root/devel/cmake-core/files/patch-Modules_Platform_FreeBSD.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'devel/cmake-core/files/patch-Modules_Platform_FreeBSD.cmake')
-rw-r--r--devel/cmake-core/files/patch-Modules_Platform_FreeBSD.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/devel/cmake-core/files/patch-Modules_Platform_FreeBSD.cmake b/devel/cmake-core/files/patch-Modules_Platform_FreeBSD.cmake
new file mode 100644
index 000000000000..a34d8d0de404
--- /dev/null
+++ b/devel/cmake-core/files/patch-Modules_Platform_FreeBSD.cmake
@@ -0,0 +1,12 @@
+--- Modules/Platform/FreeBSD.cmake.orig 2022-04-10 15:22:59 UTC
++++ Modules/Platform/FreeBSD.cmake
+@@ -26,4 +26,9 @@ foreach(type SHARED_LIBRARY SHARED_MODULE EXE)
+ set(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic")
+ endforeach()
+
++# Prefer python3 (installed by the python3 metaport) over the
++# highest-versioned Python3 interpreter, when asked for a non-exact
++# Python3 version.
++set(Python3_FIND_UNVERSIONED_NAMES FIRST)
++
+ include(Platform/UnixPaths)