Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly set CMAKE_CXX_SCAN_FOR_MODULES=0 #11615

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Conversation

hobu
Copy link
Contributor

@hobu hobu commented Jan 8, 2025

Something about my configuration was causing the following complaint

CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS-NOTFOUND

Some searching showed https://discourse.cmake.org/t/cmake-3-28-cmake-cxx-compiler-clang-scan-deps-notfound-not-found/9244/3

My configuration didn't have clang-tools installed, so I didn't have clang-scan-deps available. I shouldn't have needed it, but I don't understand why our CMake configuration thinks it does.

This PR tells CMake that it doesn't need it. When we upgrade to C++20 modules 😄, we can switch it back on.

@rouault rouault added the backport release/3.10 Backport to release/3.10 branch label Jan 8, 2025
@rouault
Copy link
Member

rouault commented Jan 8, 2025

Looks reasonable. By chance do we know if this has been fixed in the latest CMake versions? If so, we could possibly add a test on the CMake version (although that might bring little benefits)

@hobu
Copy link
Contributor Author

hobu commented Jan 8, 2025

cmake version 3.31.2

I'm using a pretty current version. I think there's something about our dependency chain causing this check to be triggered. That chain is so large there's probably no way to prevent it.

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 70.076% (+0.002%) from 70.074%
when pulling 6465523 on hobu:scandeps
into 196f855 on OSGeo:master.

@rouault rouault merged commit 3aacd02 into OSGeo:master Jan 9, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release/3.10 Backport to release/3.10 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants