Since version 3.10, CMake processes
source files in
. In earlier CMake versions, only
source files were processed.
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.14.0-rc2 warns when the policy is not set and uses
behavior. Use the
command to set it to
behavior of a policy is
and may be removed in a future version of CMake.