summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB Marques <brunosmarques1995@hotmail.com>2022-12-26 14:57:02 -0300
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>2023-01-12 12:39:35 -0700
commit2b1fce945e473c416842f131f3a7cb2bb3b5defe (patch)
treec76b206f4079561eb3f13142a2369df89674ef9b
parent4e1777a8ffbb9b2e784c09a82ecdbc10875825f0 (diff)
downloadVulkan-Loader-2b1fce945e473c416842f131f3a7cb2bb3b5defe.tar.gz
Vulkan-Loader-2b1fce945e473c416842f131f3a7cb2bb3b5defe.tar.bz2
Vulkan-Loader-2b1fce945e473c416842f131f3a7cb2bb3b5defe.zip
Added target condition to vulkan headers
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 479a5757..cd6f9214 100644
--- 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)