diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-09-28 01:57:54 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-10-02 14:17:31 (GMT) |
commit | 437280b1273cf80287639ef4d6a0a9266e23c2b1 (patch) | |
tree | 0ece1c82ca8fe517f48e87e3e2f23f839ccd36ef /Source/cmPolicies.h | |
parent | 3cddd116495a85ce86e1149c05ce9a2a701e0c8b (diff) | |
download | CMake-437280b1273cf80287639ef4d6a0a9266e23c2b1.zip CMake-437280b1273cf80287639ef4d6a0a9266e23c2b1.tar.gz CMake-437280b1273cf80287639ef4d6a0a9266e23c2b1.tar.bz2 |
cxxmodules: scan C++ sources for imports by default
Existing projects are not using C++ modules in their sources,
so introduce policy CMP0155 to enable scanning by default.
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index e894073..1ea2ce2 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -469,6 +469,10 @@ class cmMakefile; SELECT( \ 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) #define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1) @@ -508,7 +512,8 @@ class cmMakefile; F(CMP0119) \ F(CMP0131) \ F(CMP0142) \ - F(CMP0154) + F(CMP0154) \ + F(CMP0155) #define CM_FOR_EACH_CUSTOM_COMMAND_POLICY(F) \ F(CMP0116) \ |