summaryrefslogtreecommitdiffstats
path: root/Help/policy/CMP0155.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/policy/CMP0155.rst')
-rw-r--r--Help/policy/CMP0155.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Help/policy/CMP0155.rst b/Help/policy/CMP0155.rst
index 2dafadf..8b741cb 100644
--- a/Help/policy/CMP0155.rst
+++ b/Help/policy/CMP0155.rst
@@ -3,7 +3,8 @@ CMP0155
.. versionadded:: 3.28
-C++ sources in targets with at least C++20 are scanned for imports.
+C++ sources in targets with at least C++20 are scanned for imports
+when supported.
CMake 3.27 and below assume that C++ sources do not ``import`` modules.
CMake 3.28 and above prefer to assume that C++ sources in targets using C++20
@@ -16,7 +17,8 @@ support.
The ``OLD`` behavior for this policy is to assume that C++ 20 and newer
sources do not import modules. The ``NEW`` behavior for this policy is to
-assume that C++ 20 and newer files may import modules, and need to be scanned.
+assume that C++ 20 and newer files may import modules if the compiler
+understands how to scan for their dependencies, and need to be scanned.
This policy was introduced in CMake version 3.28. Use the
:command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.