summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-20 13:36:25 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-09-20 13:38:04 (GMT)
commit3523990f7b96b0f25836cf319a7c8112c55e5acd (patch)
tree1122ecf200c4761d69c1c1a5bdbfdbe513a9b27d /Help
parent366df05ac028772097ac4d1aed2752d8a821b554 (diff)
parentb69159324a386b48ff992725827029a432f8a549 (diff)
downloadCMake-3523990f7b96b0f25836cf319a7c8112c55e5acd.zip
CMake-3523990f7b96b0f25836cf319a7c8112c55e5acd.tar.gz
CMake-3523990f7b96b0f25836cf319a7c8112c55e5acd.tar.bz2
Merge topic 'bundleutilities-policy'
b69159324a Help: Add release notes for new BundleUtilities policy eedd91ab08 BundleUtilities: Disallow inclusion at configure time fd28ea35ca Help: Add note for BundleUtilities usage 3925407e76 Help: Convert BundleUtilities help to block-style comment Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2379
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake-policies.7.rst1
-rw-r--r--Help/policy/CMP0080.rst25
-rw-r--r--Help/release/dev/bundleutilities-policy.rst5
3 files changed, 31 insertions, 0 deletions
diff --git a/Help/manual/cmake-policies.7.rst b/Help/manual/cmake-policies.7.rst
index 8ecca4d..904ebee 100644
--- a/Help/manual/cmake-policies.7.rst
+++ b/Help/manual/cmake-policies.7.rst
@@ -57,6 +57,7 @@ Policies Introduced by CMake 3.13
.. toctree::
:maxdepth: 1
+ CMP0080: BundleUtilities cannot be included at configure time. </policy/CMP0080>
CMP0079: target_link_libraries allows use with targets in other directories. </policy/CMP0079>
CMP0078: UseSWIG generates standard target names. </policy/CMP0078>
CMP0077: option() honors normal variables. </policy/CMP0077>
diff --git a/Help/policy/CMP0080.rst b/Help/policy/CMP0080.rst
new file mode 100644
index 0000000..5ce9591
--- /dev/null
+++ b/Help/policy/CMP0080.rst
@@ -0,0 +1,25 @@
+CMP0080
+-------
+
+:module:`BundleUtilities` cannot be included at configure time.
+
+The macros provided by :module:`BundleUtilities` are intended to be invoked
+at install time rather than at configure time, because they depend on the
+listed targets already existing at the time they are invoked. If they are
+invoked at configure time, the targets haven't been built yet, and the
+commands will fail.
+
+This policy restricts the inclusion of :module:`BundleUtilities` to
+``cmake -P`` style scripts and install rules. Specifically, it looks for the
+presence of :variable:`CMAKE_GENERATOR` and throws a fatal error if it exists.
+
+The ``OLD`` behavior of this policy is to allow :module:`BundleUtilities` to
+be included at configure time. The ``NEW`` behavior of this policy is to
+disallow such inclusion.
+
+This policy was introduced in CMake version 3.13. CMake version
+|release| warns when the policy is not set and uses ``OLD`` behavior.
+Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW``
+explicitly.
+
+.. include:: DEPRECATED.txt
diff --git a/Help/release/dev/bundleutilities-policy.rst b/Help/release/dev/bundleutilities-policy.rst
new file mode 100644
index 0000000..e293f92
--- /dev/null
+++ b/Help/release/dev/bundleutilities-policy.rst
@@ -0,0 +1,5 @@
+bundleutilities-policy
+----------------------
+
+* The :module:`BundleUtilities` module may no longer be included at configure
+ time. This was always a bug anyway. See policy :policy:`CMP0080`.