Added target condition to vulkan headers
authorB Marques <brunosmarques1995@hotmail.com>
Mon, 26 Dec 2022 17:57:02 +0000 (14:57 -0300)
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>
Thu, 12 Jan 2023 19:39:35 +0000 (12:39 -0700)
CMakeLists.txt

index 479a57572fc463e77e718104fe5a08217e8ec4e5..cd6f9214f7be86d3af23f3a2888e0b6f888c2ef3 100644 (file)
@@ -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)