diff --git a/CMakeLists.txt b/CMakeLists.txt index 852cd364e..d34a7a962 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,11 @@ if(NOT KOMPUTE_OPT_ANDROID_BUILD) find_package(Vulkan REQUIRED) endif() +# Vulkan Header +FetchContent_Declare(vulkan_header GIT_REPOSITORY https://github.com/KhronosGroup/Vulkan-Headers.git + GIT_TAG v1.3.213) # Source: https://github.com/KhronosGroup/Vulkan-Headers/tags +FetchContent_MakeAvailable(vulkan_header) + # Spdlog if(KOMPUTE_OPT_ENABLE_SPDLOG) if(KOMPUTE_OPT_USE_BUILD_IN_SPDLOG) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 38889c33d..baf4fc037 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -54,6 +54,7 @@ if(NOT KOMPUTE_OPT_ANDROID_BUILD) target_link_libraries( kompute Vulkan::Vulkan + Vulkan-Headers fmt::fmt ) else()