From 92eb3da41525689fe61b5b61fe9211f80b47a740 Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Wed, 8 Jan 2025 16:45:44 -0600 Subject: [PATCH] explicitly set CMAKE_CXX_SCAN_FOR_MODULES=0 --- cmake/helpers/GdalCAndCXXStandards.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/helpers/GdalCAndCXXStandards.cmake b/cmake/helpers/GdalCAndCXXStandards.cmake index 6e2480cab02c..8251f1e95bbc 100644 --- a/cmake/helpers/GdalCAndCXXStandards.cmake +++ b/cmake/helpers/GdalCAndCXXStandards.cmake @@ -8,3 +8,8 @@ if (NOT CMAKE_C_STANDARD) set(CMAKE_C_STANDARD 99) set(CMAKE_C_STANDARD_REQUIRED ON) endif() + +# explicitly tell CMake not to do module +# dependency scanning +# https://discourse.cmake.org/t/cmake-3-28-cmake-cxx-compiler-clang-scan-deps-notfound-not-found/9244/3 +set(CMAKE_CXX_SCAN_FOR_MODULES 0)