The package @PORT@ is compatible with CMake if you set the OpenCV_DIR *before* the find_package call set(OpenCV_DIR "${VCPKG_INSTALLED_DIR}/@TARGET_TRIPLET@/share/@PORT@") find_package(OpenCV REQUIRED)