--- openvdb/openvdb/python/CMakeLists.txt.orig 2020-12-24 17:13:14 UTC +++ openvdb/openvdb/python/CMakeLists.txt @@ -85,7 +85,7 @@ if(OPENVDB_BUILD_PYTHON_UNITTESTS) endif() if(${CMAKE_VERSION} VERSION_LESS 3.14) - find_package(Python QUIET COMPONENTS ${OPENVDB_PYTHON_REQUIRED_COMPONENTS}) + find_package(Python ${FREEBSD_PYTHON_VER} EXACT REQUIRED COMPONENTS ${OPENVDB_PYTHON_REQUIRED_COMPONENTS}) OPENVDB_CHECK_PYTHON_VERSION(${Python_VERSION} ${Python_INCLUDE_DIRS}) if(USE_NUMPY) @@ -94,11 +94,11 @@ if(${CMAKE_VERSION} VERSION_LESS 3.14) list(APPEND OPENVDB_PYTHON_DEPS Python::NumPy) endif() else() - find_package(Python QUIET COMPONENTS ${OPENVDB_PYTHON_REQUIRED_COMPONENTS}) + find_package(Python ${FREEBSD_PYTHON_VER} EXACT REQUIRED COMPONENTS ${OPENVDB_PYTHON_REQUIRED_COMPONENTS}) OPENVDB_CHECK_PYTHON_VERSION(${Python_VERSION} ${Python_INCLUDE_DIRS}) if(USE_NUMPY) - find_package(Python QUIET COMPONENTS NumPy) + find_package(Python ${FREEBSD_PYTHON_VER} EXACT REQUIRED COMPONENTS NumPy) if(NOT TARGET Python::NumPy) message(FATAL_ERROR "Could NOT find NumPy (Required is at least version " "\"${MINIMUM_NUMPY_VERSION}\")"