From b379292b2ab6df5771ba9870d53cf8b2c9295daf Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Tue, 16 Jul 2024 00:53:45 -0500 Subject: [PATCH] cmake: Disable modules if clang-scan-deps is missing clang ships the clang-scan-deps tool separately from the compiler, making it possible that the clang compiler supports modules but cannot be used by CMake for VulkanHppModule. The straightforward solution is to, when using clang, check that the scan deps tools was located. This prevents people who are using clang but not the modules from being unable to use Vulkan-Headers when the clang-scan-deps tools is missing. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eef8c2e..fbd223e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,10 @@ target_include_directories(Vulkan-Headers INTERFACE $