From 041518a8b51532d8f5ba94064c682f37cb4dd373 Mon Sep 17 00:00:00 2001 From: Alexey Panteleev Date: Wed, 20 Nov 2024 18:48:21 -0800 Subject: [PATCH] Disabled the Vulkan-Module target. Can't update to the latest Vulkan-Headers yet because some things were renamed in an incompatible way. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d1e32a6..447aedc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,6 +55,10 @@ endif() set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) if (NVRHI_WITH_VULKAN AND NOT TARGET Vulkan-Headers AND NOT TARGET Vulkan::Headers) + # Don't need the cpp module, disable it. + # TODO: Remove this after updating Vulkan-Headers to v1.3.301 or later, which have this option OFF by default. + option(VULKAN_HEADERS_ENABLE_MODULE "" OFF) + add_subdirectory(thirdparty/Vulkan-Headers) endif()