vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO oneapi-src/oneDNN REF "v${VERSION}" SHA512 85f424403be4231e57929c77c6e30def3e6c6ae7e706b94585e4228cbebd625eb9f0440084315032310caed066c6746f4dbbbbd2f42660c0de5313d6bce34c1e HEAD_REF master ) if (VCPKG_LIBRARY_LINKAGE STREQUAL static) set(DNNL_OPTIONS "-DDNNL_LIBRARY_TYPE=STATIC") endif() vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS ${DNNL_OPTIONS} ) vcpkg_cmake_install() # The port name and the find_package() name are different (onednn versus dnnl) vcpkg_cmake_config_fixup(PACKAGE_NAME dnnl CONFIG_PATH lib/cmake/dnnl) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc/dnnl/reference/html") vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")