summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-10-28 02:43:37 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-01 13:52:08 (GMT)
commit889aa0354aa533dce0e96334401267aa30bff215 (patch)
tree1e6772eb7c07feddd9b1ae0fabcf34c23b08899b /Source/cmPolicies.h
parente3747a2d4be427e97af01ca1cce1c6641d4dff74 (diff)
downloadCMake-889aa0354aa533dce0e96334401267aa30bff215.zip
CMake-889aa0354aa533dce0e96334401267aa30bff215.tar.gz
CMake-889aa0354aa533dce0e96334401267aa30bff215.tar.bz2
CMP0155: ignore scanning for sources if no scanner is available
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
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 1ea2ce2..8838de4 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -470,10 +470,10 @@ class cmMakefile;
POLICY, CMP0154, \
"Generated files are private by default in targets using file sets.", 3, \
28, 0, cmPolicies::WARN) \
- SELECT( \
- POLICY, CMP0155, \
- "C++ sources in targets with at least C++20 are scanned for imports", 3, \
- 28, 0, cmPolicies::WARN)
+ SELECT(POLICY, CMP0155, \
+ "C++ sources in targets with at least C++20 are scanned for " \
+ "imports when supported.", \
+ 3, 28, 0, cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)
#define CM_FOR_EACH_POLICY_ID(POLICY) \