diff options
| author | Jacob Kahn <jacobkahn1@gmail.com> | 2020-12-31 00:38:55 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-30 22:38:55 -0800 |
| commit | 63f9a4aeff92113a33aacee033d34670199f10f6 (patch) | |
| tree | be9d62bdacef1121d6893ee509f10fce9969a6cc | |
| parent | 73cfc659193bf83bd22e400a29a213165aa20b40 (diff) | |
| download | vcpkg-63f9a4aeff92113a33aacee033d34670199f10f6.tar.gz vcpkg-63f9a4aeff92113a33aacee033d34670199f10f6.zip | |
[onednn] Fix share path infix to match find_package() name (#15372)
* [onednn] Fix share path infix to match find_package() name
* Add port-version
* Install failure message
| -rw-r--r-- | ports/onednn/portfile.cmake | 6 | ||||
| -rw-r--r-- | ports/onednn/vcpkg.json | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/onednn/portfile.cmake b/ports/onednn/portfile.cmake index 4a9600ac7..c2179d5ff 100644 --- a/ports/onednn/portfile.cmake +++ b/ports/onednn/portfile.cmake @@ -1,3 +1,5 @@ +vcpkg_fail_port_install(ON_ARCH "x86" "arm" ON_TARGET "uwp") + vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO oneapi-src/oneDNN @@ -17,7 +19,9 @@ vcpkg_configure_cmake( ) vcpkg_install_cmake() -vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake) +# The port name and the find_package() name are different (onednn versus dnnl) +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/dnnl TARGET_PATH share/dnnl) + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") diff --git a/ports/onednn/vcpkg.json b/ports/onednn/vcpkg.json index 7ceebd191..86f7989f4 100644 --- a/ports/onednn/vcpkg.json +++ b/ports/onednn/vcpkg.json @@ -1,6 +1,7 @@ { "name": "onednn", "version-string": "2.0", + "port-version": 1, "description": "oneAPI Deep Neural Network Library (oneDNN)", "supports": "x64 & !uwp" } |
