2020-08-29 10:12:24 +02:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2020-08-29 10:10:12.022296526 +0200
|
|
|
|
|
|
|
|
Avoid the installation of a custom xxhash.h header. Since vk_*.h header files
|
|
|
|
still include xxhash.h (and now would source the system xxhash instead of the
|
|
|
|
bundled one), it makes sense to build ValidationLayers itself with the system
|
|
|
|
xxhash as well, so that the ABI matches.
|
|
|
|
|
|
|
|
---
|
2023-03-29 20:55:53 +02:00
|
|
|
layers/CMakeLists.txt | 4 +---
|
|
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
2020-08-29 10:12:24 +02:00
|
|
|
|
2023-03-29 20:55:53 +02:00
|
|
|
Index: Vulkan-ValidationLayers-sdk-1.3.243.0/layers/CMakeLists.txt
|
2020-08-29 10:12:24 +02:00
|
|
|
===================================================================
|
2023-03-29 20:55:53 +02:00
|
|
|
--- Vulkan-ValidationLayers-sdk-1.3.243.0.orig/layers/CMakeLists.txt
|
|
|
|
+++ Vulkan-ValidationLayers-sdk-1.3.243.0/layers/CMakeLists.txt
|
|
|
|
@@ -41,8 +41,6 @@ target_sources(VkLayer_utils PRIVATE
|
2023-01-29 14:13:06 +01:00
|
|
|
vk_layer_logging.cpp
|
|
|
|
vk_layer_utils.h
|
|
|
|
vk_layer_utils.cpp
|
|
|
|
- xxhash.h
|
2023-03-29 20:55:53 +02:00
|
|
|
- xxhash.cpp
|
2022-12-23 10:25:04 +01:00
|
|
|
)
|
2023-03-29 20:55:53 +02:00
|
|
|
|
|
|
|
# XXH_NO_LONG_LONG: removes compilation of algorithms relying on 64-bit types (XXH3 and XXH64). Only XXH32 will be compiled.
|
|
|
|
@@ -53,7 +51,7 @@ target_sources(VkLayer_utils PRIVATE
|
|
|
|
# https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/4640
|
|
|
|
target_compile_definitions(VkLayer_utils PUBLIC XXH_NO_LONG_LONG)
|
|
|
|
|
2023-02-16 20:09:02 +01:00
|
|
|
-target_link_libraries(VkLayer_utils PUBLIC Vulkan::Headers)
|
|
|
|
+target_link_libraries(VkLayer_utils PUBLIC Vulkan::Headers -lxxhash)
|
|
|
|
target_include_directories(VkLayer_utils PUBLIC
|
|
|
|
.
|
2023-03-29 20:55:53 +02:00
|
|
|
generated # Needed otherwise VkLayer_utils won't install properly.
|