We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 746f585 commit e777aa7Copy full SHA for e777aa7
1 file changed
attachments/advanced_gltf/CMake/FindVulkanHpp.cmake
@@ -0,0 +1,14 @@
1
+# FindVulkanHpp.cmake — re-entrancy shim
2
+#
3
+# advanced_gltf/CMakeLists.txt calls find_package(VulkanHpp) before
4
+# add_subdirectory(simple_engine), and simple_engine/CMakeLists.txt calls it
5
+# again. simple_engine's implementation uses FetchContent_Populate, which is
6
+# fatal when the content is already populated (cmake 3.x). This shim is
7
+# found first (advanced_gltf/CMake precedes simple_engine/CMake in
8
+# CMAKE_MODULE_PATH) and short-circuits the second invocation.
9
+if(TARGET VulkanHpp::VulkanHpp)
10
+ set(VulkanHpp_FOUND TRUE)
11
+ return()
12
+endif()
13
+
14
+include("${CMAKE_CURRENT_LIST_DIR}/../../simple_engine/CMake/FindVulkanHpp.cmake")
0 commit comments