mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 13:27:56 +08:00
[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:
parent
2f4a723ed4
commit
cc516fb763
@ -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.
|
@ -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)
|
Loading…
Reference in New Issue
Block a user