[cmake] add  Python3_FIND_FRAMEWORK=LAST for APPLE
@@ -51,6 +51,10 @@ if(${CMAKE_VERSION} VERSION_LESS "3.14")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/extras)
endif()
+if(APPLE)
+ set(Python3_FIND_FRAMEWORK LAST)
+endif()
+
if(WITH_PYTHON_WRAPPER)
find_package(Python3 COMPONENTS Development Interpreter NumPy REQUIRED)
else()
