From ce3cd65f236cf6bd524daad7da25573629e91b8d Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Tue, 16 Jul 2024 00:53:45 -0500 Subject: 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 $