CMP0118: Revise documentation to describe actual behavior

The policy was originally intended to make the `GENERATED` source file
property globally visible, but the implementation didn't fully achieve
that goal.  Revise the documentation to describe what it actually does.

Issue: #25437
This commit is contained in:
Deniz Bahadir 2024-03-20 00:42:16 +01:00 committed by Brad King
parent d2f5b79795
commit 1dabbbb5e0
13 changed files with 98 additions and 96 deletions

View File

@ -171,7 +171,7 @@ Policies Introduced by CMake 3.20
CMP0120: The WriteCompilerDetectionHeader module is removed. </policy/CMP0120>
CMP0119: LANGUAGE source file property explicitly compiles as language. </policy/CMP0119>
CMP0118: The GENERATED source file property is now visible in all directories. </policy/CMP0118>
CMP0118: GENERATED sources may be used across directories without manual marking. </policy/CMP0118>
CMP0117: MSVC RTTI flag /GR is not added to CMAKE_CXX_FLAGS by default. </policy/CMP0117>
CMP0116: Ninja generators transform DEPFILEs from add_custom_command(). </policy/CMP0116>
CMP0115: Source file extensions must be explicit. </policy/CMP0115>

View File

@ -3,25 +3,30 @@ CMP0118
.. versionadded:: 3.20
The :prop_sf:`GENERATED` source file property is now visible in all directories.
:prop_sf:`GENERATED` sources may be used across directories without manual marking.
In CMake 3.19 and below, the :prop_sf:`GENERATED` source file property,
like other source file properties, was scoped in every directory separately.
If a source file was generated in one directory, projects had to manually
set the ``GENERATED`` property in another directory in order to use the file.
Whether or not a source file is generated is an all-or-nothing global
property of the source. Consequently, the associated ``GENERATED``
property is now visible from any directory scope, not only from the scope
for which it was set.
property of the source: a source is either generated or it is not.
CMake 3.20 and above prefer to allow source files generated in one directory
to be used in other directories without manually marking them as ``GENERATED``.
Additionally, the ``GENERATED`` property may now be set only to boolean
values, and may not be turned off once turned on.
values, and may not be turned off once turned on. This policy provides
compatibility for projects that have not been updated for this behavior.
The ``OLD`` behavior of this policy is to only allow ``GENERATED`` to be
visible from the directory scope for which it was set. The ``NEW``
behavior on the other hand allows it to be visible from any scope.
The ``OLD`` behavior of this policy is to allow generated files to be used
only in directories in which their ``GENERATED`` property has been turned on.
The ``NEW`` behavior of this policy is to allow generated files to be used
in other directories without explicitly turning on the ``GENERATED`` property
for those directories.
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.20
.. |WARNS_OR_DOES_NOT_WARN| replace::
does *not* warn with regard to visibility of the ``GENERATED``
property, but does warn about setting the ``GENERATED`` property
to a non-boolean value,
warns about setting the ``GENERATED`` property to a non-boolean value
.. include:: STANDARD_ADVICE.txt
.. include:: DEPRECATED.txt

View File

@ -4,7 +4,11 @@ GENERATED
Is this source file generated as part of the build or CMake process.
.. versionchanged:: 3.20
The GENERATED source file property is now visible in all directories.
Turning on the ``GENERATED`` source file property in one directory allows
the associated source file to be used across directories without the need
to manually setting that property for other directory scopes, too.
Additionally, it may now be set only to boolean values, and may not be
turned off once turned on. See policy :policy:`CMP0118`.
Tells the internal CMake engine that a source file is generated by an outside
process such as another build step, or the execution of CMake itself.
@ -38,11 +42,3 @@ be shown. For the special case of sources generated by CMake's :prop_tgt:`AUTOMO
:prop_gbl:`AUTORCC_SOURCE_GROUP` and :prop_gbl:`AUTOUIC_SOURCE_GROUP` target
properties may influence where the generated sources are grouped in the project's
file lists.
.. note::
Starting with CMake 3.20 the ``GENERATED`` source file property can be set
and retrieved from any directory scope. It is an all-or-nothing property.
It also can no longer be removed or unset if it was set to ``TRUE``. Policy
:policy:`CMP0118` was introduced to allow supporting the ``OLD`` behavior
for some time.

View File

@ -147,8 +147,9 @@ Properties
for the associated :variable:`CMAKE_EXPORT_COMPILE_COMMANDS` variable
to allow for configuration of exporting compile commands per target.
* The :prop_sf:`GENERATED` source-file property is now visible
from any directory scope, regardless of the scope in which it is set.
* Generated sources may be used across directories without manual marking.
Additionally, the :prop_sf:`GENERATED` source file property can no longer be
turned off once turned on, nor can it be set to other than boolean values.
See policy :policy:`CMP0118`.
* The :prop_tgt:`UNITY_BUILD_UNIQUE_ID` target property

View File

@ -349,10 +349,10 @@ class cmMakefile;
SELECT(POLICY, CMP0117, \
"MSVC RTTI flag /GR is not added to CMAKE_CXX_FLAGS by default.", 3, \
20, 0, cmPolicies::WARN) \
SELECT( \
POLICY, CMP0118, \
"The GENERATED source file property is now visible in all directories.", \
3, 20, 0, cmPolicies::WARN) \
SELECT(POLICY, CMP0118, \
"GENERATED sources may be used across directories without manual " \
"marking.", \
3, 20, 0, cmPolicies::WARN) \
SELECT(POLICY, CMP0119, \
"LANGUAGE source file property explicitly compiles as specified " \
"language.", \

View File

@ -1,6 +1,6 @@
^((CMake Warning \(dev\) at subdir-Common-Test11/CMakeLists\.txt:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -9,8 +9,8 @@
This warning is for project developers\. Use -Wno-dev to suppress it\.
+)+
(CMake Warning \(dev\) at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_subdirectory\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.

View File

@ -8,8 +8,8 @@ CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\
TARGET 'custom[4-6]' was not created in this directory\.
+
((CMake Warning \(dev\) at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -18,8 +18,8 @@ CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\
This warning is for project developers\. Use -Wno-dev to suppress it\.
+)+
(CMake Warning \(dev\) at CMP0118-Common-Test13\.cmake:[0-9]+ \(add_subdirectory\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.

View File

@ -1,6 +1,6 @@
^((CMake Warning \(dev\) at subdir-Common-Test15/CMakeLists\.txt:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -9,8 +9,8 @@
This warning is for project developers\. Use -Wno-dev to suppress it\.
+)+
(CMake Warning \(dev\) at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_subdirectory\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.

View File

@ -1,6 +1,6 @@
^CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -18,8 +18,8 @@ Generated_with_full_path1\.txt: # 2b # GENERATED = `0`
Generated_with_full_path1\.txt: # 3a # GENERATED = `0`
Generated_with_full_path1\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -37,8 +37,8 @@ Generated_with_full_path2\.txt: # 2b # GENERATED = `0`
Generated_with_full_path2\.txt: # 3a # GENERATED = `0`
Generated_with_full_path2\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -56,8 +56,8 @@ Generated_with_full_path3\.txt: # 2b # GENERATED = `0`
Generated_with_full_path3\.txt: # 3a # GENERATED = `0`
Generated_with_full_path3\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -75,8 +75,8 @@ Generated_with_relative_path1\.txt: # 2b # GENERATED = `0`
Generated_with_relative_path1\.txt: # 3a # GENERATED = `0`
Generated_with_relative_path1\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -94,8 +94,8 @@ Generated_with_relative_path2\.txt: # 2b # GENERATED = `0`
Generated_with_relative_path2\.txt: # 3a # GENERATED = `0`
Generated_with_relative_path2\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -113,8 +113,8 @@ Generated_with_relative_path3\.txt: # 2b # GENERATED = `0`
Generated_with_relative_path3\.txt: # 3a # GENERATED = `0`
Generated_with_relative_path3\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -132,8 +132,8 @@ Generated_with_full_source_path1\.txt: # 2b # GENERATED = `0`
Generated_with_full_source_path1\.txt: # 3a # GENERATED = `0`
Generated_with_full_source_path1\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -151,8 +151,8 @@ Generated_with_full_source_path2\.txt: # 2b # GENERATED = `0`
Generated_with_full_source_path2\.txt: # 3a # GENERATED = `0`
Generated_with_full_source_path2\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.

View File

@ -1,6 +1,6 @@
^CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -18,8 +18,8 @@ Generated_with_full_path1\.txt: # 2b # GENERATED = `0`
Generated_with_full_path1\.txt: # 3a # GENERATED = `0`
Generated_with_full_path1\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -37,8 +37,8 @@ Generated_with_full_path2\.txt: # 2b # GENERATED = `0`
Generated_with_full_path2\.txt: # 3a # GENERATED = `0`
Generated_with_full_path2\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -56,8 +56,8 @@ Generated_with_full_path3\.txt: # 2b # GENERATED = `0`
Generated_with_full_path3\.txt: # 3a # GENERATED = `0`
Generated_with_full_path3\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -75,8 +75,8 @@ Generated_with_relative_path1\.txt: # 2b # GENERATED = `0`
Generated_with_relative_path1\.txt: # 3a # GENERATED = `0`
Generated_with_relative_path1\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -94,8 +94,8 @@ Generated_with_relative_path2\.txt: # 2b # GENERATED = `0`
Generated_with_relative_path2\.txt: # 3a # GENERATED = `0`
Generated_with_relative_path2\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -113,8 +113,8 @@ Generated_with_relative_path3\.txt: # 2b # GENERATED = `0`
Generated_with_relative_path3\.txt: # 3a # GENERATED = `0`
Generated_with_relative_path3\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -132,8 +132,8 @@ Generated_with_full_source_path1\.txt: # 2b # GENERATED = `0`
Generated_with_full_source_path1\.txt: # 3a # GENERATED = `0`
Generated_with_full_source_path1\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -151,8 +151,8 @@ Generated_with_full_source_path2\.txt: # 2b # GENERATED = `0`
Generated_with_full_source_path2\.txt: # 3a # GENERATED = `0`
Generated_with_full_source_path2\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.

View File

@ -5,8 +5,8 @@ Generated_with_full_path1\.txt: # 2b # GENERATED = `1`
Generated_with_full_path1\.txt: # 3a # GENERATED = `0`
Generated_with_full_path1\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -24,8 +24,8 @@ Generated_with_full_path2\.txt: # 2b # GENERATED = `0`
Generated_with_full_path2\.txt: # 3a # GENERATED = `0`
Generated_with_full_path2\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -57,8 +57,8 @@ Generated_with_relative_path1\.txt: # 2b # GENERATED = `1`
Generated_with_relative_path1\.txt: # 3a # GENERATED = `0`
Generated_with_relative_path1\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -76,8 +76,8 @@ Generated_with_relative_path2\.txt: # 2b # GENERATED = `0`
Generated_with_relative_path2\.txt: # 3a # GENERATED = `0`
Generated_with_relative_path2\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -109,8 +109,8 @@ Generated_with_full_source_path1\.txt: # 2b # GENERATED = `1`
Generated_with_full_source_path1\.txt: # 3a # GENERATED = `1`
Generated_with_full_source_path1\.txt: # 3b # GENERATED = `1`
CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -128,8 +128,8 @@ Generated_with_full_source_path2\.txt: # 2b # GENERATED = `0`
Generated_with_full_source_path2\.txt: # 3a # GENERATED = `0`
Generated_with_full_source_path2\.txt: # 3b # GENERATED = `0`
CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.

View File

@ -1,6 +1,6 @@
^((CMake Warning \(dev\) at subdir-Common-Test7/CMakeLists\.txt:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -9,8 +9,8 @@
This warning is for project developers\. Use -Wno-dev to suppress it\.
+)+
(CMake Warning \(dev\) at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_subdirectory\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.

View File

@ -1,6 +1,6 @@
^((CMake Warning \(dev\) at subdir-Common-Test9/CMakeLists\.txt:[0-9]+ \(set_property\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
@ -9,8 +9,8 @@
This warning is for project developers\. Use -Wno-dev to suppress it\.
+)+
(CMake Warning \(dev\) at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_subdirectory\):
Policy CMP0118 is not set: The GENERATED source file property is now
visible in all directories\. Run "cmake --help-policy CMP0118" for policy
Policy CMP0118 is not set: GENERATED sources may be used across directories
without manual marking\. Run "cmake --help-policy CMP0118" for policy
details\. Use the cmake_policy command to set the policy and suppress this
warning\.