diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2018-02-03 09:12:01 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2018-02-03 09:12:01 (GMT) |
commit | c4ffbb79c0b52f6ed80304493730cfc3ebb15069 (patch) | |
tree | 2739a77e2756028125eb39d214ce714f3b7e957f /Help/manual/cmake-qt.7.rst | |
parent | b12069f7b0dc0a5e9b9031dcae2cca1b1ff7281d (diff) | |
download | CMake-c4ffbb79c0b52f6ed80304493730cfc3ebb15069.zip CMake-c4ffbb79c0b52f6ed80304493730cfc3ebb15069.tar.gz CMake-c4ffbb79c0b52f6ed80304493730cfc3ebb15069.tar.bz2 |
Autogen: Documentation: Update for AUTORCC changes
Diffstat (limited to 'Help/manual/cmake-qt.7.rst')
-rw-r--r-- | Help/manual/cmake-qt.7.rst | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Help/manual/cmake-qt.7.rst b/Help/manual/cmake-qt.7.rst index e5c593f..724d8ec 100644 --- a/Help/manual/cmake-qt.7.rst +++ b/Help/manual/cmake-qt.7.rst @@ -217,19 +217,16 @@ enabling :prop_sf:`SKIP_AUTORCC` or the broader :prop_sf:`SKIP_AUTOGEN`. Visual Studio Generators ======================== -When using the :manual:`Visual Studio generators <cmake-generators(7)>` -CMake tries to use a ``PRE_BUILD`` -:command:`custom command <add_custom_command>` instead -of a :command:`custom target <add_custom_target>` for autogen. -``PRE_BUILD`` can't be used when the autogen target depends on files. +When using the :manual:`Visual Studio generators <cmake-generators(7)>`, +CMake uses a ``PRE_BUILD`` :command:`custom command <add_custom_command>` for +:prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC`. +If the :prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC` processing depends on files, +a :command:`custom target <add_custom_target>` is used instead. This happens when -- :prop_tgt:`AUTOMOC` or :prop_tgt:`AUTOUIC` is enabled and the origin target - depends on :prop_sf:`GENERATED` files which aren't excluded from autogen by - :prop_sf:`SKIP_AUTOMOC`, :prop_sf:`SKIP_AUTOUIC`, :prop_sf:`SKIP_AUTOGEN` - or :policy:`CMP0071` -- :prop_tgt:`AUTORCC` is enabled and a ``.qrc`` file is listed in - the origin target sources +- The origin target depends on :prop_sf:`GENERATED` files which aren't excluded + from :prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC` by :prop_sf:`SKIP_AUTOMOC`, + :prop_sf:`SKIP_AUTOUIC`, :prop_sf:`SKIP_AUTOGEN` or :policy:`CMP0071` - :prop_tgt:`AUTOGEN_TARGET_DEPENDS` lists a source file qtmain.lib on Windows |