We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae69fc3 commit dead908Copy full SHA for dead908
CMakeLists.txt
@@ -534,6 +534,13 @@ if(WERROR)
534
unset(werror_flag)
535
endif()
536
537
+# Prefer Unix-style package components over frameworks on macOS.
538
+# This improves compatibility with Python version managers.
539
+set(Python3_FIND_FRAMEWORK LAST CACHE STRING "")
540
+# Search for generic names before more specialized ones. This
541
+# improves compatibility with Python version managers that use shims.
542
+set(Python3_FIND_UNVERSIONED_NAMES FIRST CACHE STRING "")
543
+mark_as_advanced(Python3_FIND_FRAMEWORK Python3_FIND_UNVERSIONED_NAMES)
544
find_package(Python3 3.10 COMPONENTS Interpreter)
545
if(Python3_EXECUTABLE)
546
set(PYTHON_COMMAND ${Python3_EXECUTABLE})
0 commit comments