summaryrefslogtreecommitdiffstats
path: root/Help/policy/CMP0155.rst
Commit message (Collapse)AuthorAgeFilesLines
* Help: Normalize and consolidate standard policy advice paragraphBrad King2024-01-111-4/+3
| | | | | | | | Every policy's documentation has a paragraph on what version of CMake introduced it, how to set the policy, and whether CMake warns if the policy is not set. The wording of this paragraph has diverged across policies over time. Factor the paragraph out into a standard advice document included by every policy.
* CMP0155: ignore scanning for sources if no scanner is availableBen Boeckel2023-11-011-2/+4
| | | | | | | | | | This allows for a more graceful transition for projects using C++20 without scanner support (e.g., Clang 15 or GCC 13). While newer compilers will (needlessly) scan, it allows C++20-using projects to use older compilers without having to set `CMAKE_CXX_SCAN_FOR_MODULES` to support newer CMake minimum versions. Fixes: #25357
* cxxmodules: scan C++ sources for imports by defaultBen Boeckel2023-10-021-0/+26
Existing projects are not using C++ modules in their sources, so introduce policy CMP0155 to enable scanning by default.