Repository navigation
CMake: no scan for C++ modules - #235
Merged
Merged
Conversation
JeromeMartinez
force-pushed
the
CMake_CXX11
branch
from
November 29, 2026 21:17
a075848 to
925f93a
Compare
JeromeMartinez
force-pushed
the
CMake_CXX11
branch
from
November 29, 2026 21:20
925f93a to
d06a195
Compare
JeromeMartinez
force-pushed
the
CMake_CXX11
branch
from
November 29, 2026 21:22
d06a195 to
54a3056
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From C++20, CMake 3.28+ scans each source for C++ modules before its compilation. The sources don't use C++ modules, and with GCC this scan makes the compilations not cacheable by ccache, so:
CXX_SCAN_FOR_MODULES OFF) and the latest C++ standard of the compiler is still used (up to C++26),This also makes the CMake jobs which build this library with compiler cache faster (e.g. in the MediaInfo CI).
The same change is in MediaArea/ZenLib, MediaArea/MediaInfoLib and MediaArea/MediaInfo (branch
CMake_CXX11), the CMake module is the same in the three projects.