summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-08 13:44:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-08 13:45:07 (GMT)
commite5c1a7dfb3ca419967511ac471c91ebc2c5d76a1 (patch)
treed77daf590097eba6f265c231cfbb94743c0861b9 /Help
parent90b6186cbdf4e1deeeaa60eaae00e8461136ea6a (diff)
parent6739a12571bfa8b97b00740981e9f6eb5195529f (diff)
downloadCMake-e5c1a7dfb3ca419967511ac471c91ebc2c5d76a1.zip
CMake-e5c1a7dfb3ca419967511ac471c91ebc2c5d76a1.tar.gz
CMake-e5c1a7dfb3ca419967511ac471c91ebc2c5d76a1.tar.bz2
Merge topic 'autogen-digests'
6739a125 Autogen: Doc: Add Visual Studio PRE_BUILD note to cmake-qt.rst 2be0acb7 Autogen: Tests: Add AUTOGEN_TARGET_DEPENDS test to mocDepends tests 734d236c Autogen: Smarter target dependency computation 2e4dab08 Autogen: Set CM_DISABLE_COPY in cmQtAutoGenerators c330d641 Autogen: Replace CM_AUTO_PTR with std::unique_ptr 9468e926 Autogen: Refactor logging 2ba1b281 Autogen: More use of scoped lambdas 0f9080e2 Autogen: More use of scoped lambdas ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1198
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake-qt.7.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/Help/manual/cmake-qt.7.rst b/Help/manual/cmake-qt.7.rst
index 55121df..7052e0a 100644
--- a/Help/manual/cmake-qt.7.rst
+++ b/Help/manual/cmake-qt.7.rst
@@ -214,6 +214,24 @@ overrides options from the :prop_tgt:`AUTORCC_OPTIONS` target property.
Source files can be excluded from :prop_tgt:`AUTORCC` processing by
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.
+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
+- :prop_tgt:`AUTOGEN_TARGET_DEPENDS` lists a source file
+
qtmain.lib on Windows
=====================