Jan Engelhardt
af9b5a1d97
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-validationlayers?expand=0&rev=110
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: 2020-08-19 13:21:33.156157310 +0200
|
|
|
|
We do not want static archives in openSUSE, so need to turn on SHARED mode.
|
|
As a result, a version needs to be added.
|
|
---
|
|
layers/CMakeLists.txt | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
Index: Vulkan-ValidationLayers-sdk-1.3.239.0/layers/CMakeLists.txt
|
|
===================================================================
|
|
--- Vulkan-ValidationLayers-sdk-1.3.239.0.orig/layers/CMakeLists.txt
|
|
+++ Vulkan-ValidationLayers-sdk-1.3.239.0/layers/CMakeLists.txt
|
|
@@ -23,7 +23,7 @@
|
|
# https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/4640
|
|
add_compile_definitions(XXH_NO_LONG_LONG)
|
|
|
|
-add_library(VkLayer_utils STATIC)
|
|
+add_library(VkLayer_utils SHARED)
|
|
target_sources(VkLayer_utils PRIVATE
|
|
generated/vk_format_utils.h
|
|
generated/vk_format_utils.cpp
|
|
@@ -53,6 +53,7 @@ target_sources(VkLayer_utils PRIVATE
|
|
xxhash.h
|
|
xxhash.c
|
|
)
|
|
+set_target_properties(VkLayer_utils PROPERTIES OUTPUT_NAME "VkLayer_utils-@PACKAGE_VERSION@")
|
|
target_link_libraries(VkLayer_utils PUBLIC Vulkan::Headers)
|
|
set_target_properties(VkLayer_utils PROPERTIES LINKER_LANGUAGE CXX)
|
|
target_include_directories(VkLayer_utils PUBLIC
|