Skip to content

Commit e777aa7

Browse files
committed
Try to fix CI.
1 parent 746f585 commit e777aa7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)