[vulkan] fix license copying on macOS (#5319)

* Check if license exists in root of VULKAN_DIR, otherwise try one directory higher

* [vulkan] Bump control version
This commit is contained in:
Lassi 2019-02-08 01:20:42 +02:00 committed by Robert Schumacher
parent 2f4a723ed4
commit cc516fb763
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,3 @@
Source: vulkan
Version: 1.1.82.1
Version: 1.1.82.1-1
Description: A graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs on a wide variety of devices.

View File

@ -33,5 +33,12 @@ if(VULKAN_DIR MATCHES "(([0-9]+)\\.([0-9]+)\\.([0-9]+)\\.([0-9]+))")
endif()
endif()
configure_file(${VULKAN_DIR}/LICENSE.TXT ${CURRENT_PACKAGES_DIR}/share/vulkan/copyright COPYONLY)
if (EXISTS ${VULKAN_DIR}/../LICENSE.TXT)
configure_file(${VULKAN_DIR}/../LICENSE.TXT ${CURRENT_PACKAGES_DIR}/share/vulkan/copyright COPYONLY)
elseif(EXISTS ${VULKAN_DIR}/LICENSE.TXT)
configure_file(${VULKAN_DIR}/LICENSE.TXT ${CURRENT_PACKAGES_DIR}/share/vulkan/copyright COPYONLY)
else()
message(FATAL_ERROR "Could not find LICENSE.TXT")
endif()
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)