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()