New in version 3.10.
Since version 3.10, CMake processes regular and
source files in
In earlier CMake versions, only regular source files were processed.
GENERATED source files were ignored silently.
Source skip example:
# ... set_property(SOURCE /path/to/file1.h PROPERTY SKIP_AUTOMOC ON) set_property(SOURCE /path/to/file2.h PROPERTY SKIP_AUTOUIC ON) set_property(SOURCE /path/to/file3.h PROPERTY SKIP_AUTOGEN ON) # ...
This policy was introduced in CMake version 3.10. CMake version
3.21.3 warns when the policy is not set and uses
cmake_policy() command to set it to
OLD behavior of a policy is
deprecated by definition
and may be removed in a future version of CMake.