1CMP0100 2------- 3 4.. versionadded:: 3.17 5 6Let :prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC` process 7header files that end with a ``.hh`` extension. 8 9Since version 3.17, CMake processes header files that end with a 10``.hh`` extension in :prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC`. 11In earlier CMake versions, these header files were ignored by 12:prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC`. 13 14This policy affects how header files that end with a ``.hh`` extension 15get treated in :prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC`. 16 17The ``OLD`` behavior for this policy is to ignore ``.hh`` header files 18in :prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC`. 19 20The ``NEW`` behavior for this policy is to process ``.hh`` header files 21in :prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC` just like other header files. 22 23.. note:: 24 25 To silence the ``CMP0100`` warning source files can be excluded from 26 :prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC` processing by setting the 27 source file properties :prop_sf:`SKIP_AUTOMOC`, :prop_sf:`SKIP_AUTOUIC` or 28 :prop_sf:`SKIP_AUTOGEN`. 29 30 .. code-block:: cmake 31 32 # Source skip example: 33 set_property(SOURCE /path/to/file1.hh PROPERTY SKIP_AUTOMOC ON) 34 set_property(SOURCE /path/to/file2.hh PROPERTY SKIP_AUTOUIC ON) 35 set_property(SOURCE /path/to/file3.hh PROPERTY SKIP_AUTOGEN ON) 36 37This policy was introduced in CMake version 3.17.0. CMake version 38|release| warns when the policy is not set and uses ``OLD`` behavior. 39Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` 40explicitly. 41 42.. include:: DEPRECATED.txt 43