projects
/
platform
/
upstream
/
Vulkan-Loader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e1777a
)
Added target condition to vulkan headers
author
B Marques
<brunosmarques1995@hotmail.com>
Mon, 26 Dec 2022 17:57:02 +0000
(14:57 -0300)
committer
Juan Ramos
<114601453+juan-lunarg@users.noreply.github.com>
Thu, 12 Jan 2023 19:39:35 +0000
(12:39 -0700)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 479a57572fc463e77e718104fe5a08217e8ec4e5..cd6f9214f7be86d3af23f3a2888e0b6f888c2ef3 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-112,7
+112,9
@@
if(BUILD_STATIC_LOADER)
"or tested as part of the loader. Use it at your own risk.")
endif()
-find_package(VulkanHeaders REQUIRED CONFIG QUIET)
+if (NOT TARGET Vulkan::Headers)
+ find_package(VulkanHeaders REQUIRED CONFIG QUIET)
+endif()
include(GNUInstallDirs)