Turn off C++ modules in vulkan-headers.
The Vulkan-Headers repo added support for c++ modules based on CMake
version. This breaks if your clang is too old and you don't have the
module scanner. This CL disables the module support in Vulkan-Headers.
Change-Id: I8cfda2f0fdd8678bd3929aed44270e251a2e9500
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/194861
Reviewed-by: James Price <jrprice@google.com>
Auto-Submit: dan sinclair <dsinclair@chromium.org>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
index b9d97a5..1d43f1a 100644
--- a/third_party/CMakeLists.txt
+++ b/third_party/CMakeLists.txt
@@ -107,6 +107,8 @@
if (NOT TARGET Vulkan-Headers)
message(STATUS "Dawn: using Vulkan-Headers at ${DAWN_VULKAN_HEADERS_DIR}")
+
+ set(VULKAN_HEADERS_ENABLE_MODULE OFF)
add_subdirectory(${DAWN_VULKAN_HEADERS_DIR} "${CMAKE_CURRENT_BINARY_DIR}/vulkan-headers")
endif()