summaryrefslogtreecommitdiff
path: root/Help/policy
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2015-04-29 15:09:24 +0200
committerBrad King <brad.king@kitware.com>2015-04-30 10:20:20 -0400
commit32a2f41402d38e1c5be3547bd042328df0b28124 (patch)
tree9991861d5cc2a0966ad3ac1976a3c3d73081b463 /Help/policy
parentd1a74bba1bba0c4381e7c3a6a93551320dc377ac (diff)
downloadcmake-32a2f41402d38e1c5be3547bd042328df0b28124.tar.gz
Revert "add_custom_command: Diagnose MAIN_DEPENDENCY limitation."
This reverts commit 242c3966 (add_custom_command: Diagnose MAIN_DEPENDENCY limitation, 2015-03-09) and the follow up commit b372a99a (UseSWIG: Do not use MAIN_DEPENDENCY on custom commands, 2015-03-26). I misdiagnosed the underlying issue that prompted creation of policy CMP0057. The actual issue surfaces when a single custom command's MAIN_DEPENDENCY is listed in more than one target; this issue will have to be addressed independently.
Diffstat (limited to 'Help/policy')
-rw-r--r--Help/policy/CMP0057.rst19
1 files changed, 1 insertions, 18 deletions
diff --git a/Help/policy/CMP0057.rst b/Help/policy/CMP0057.rst
index 5cf078470f..377f22d3fe 100644
--- a/Help/policy/CMP0057.rst
+++ b/Help/policy/CMP0057.rst
@@ -1,21 +1,4 @@
CMP0057
-------
-Disallow multiple ``MAIN_DEPENDENCY`` specifications for the same file.
-
-CMake 3.3 and above no longer allow the same input file to be used
-as a ``MAIN_DEPENDENCY`` in more than one custom command.
-
-Listing the same input file more than once in this context has not been
-supported by earlier versions either and would lead to build time issues
-but was not diagnosed.
-
-The ``OLD`` behavior for this policy is to allow using the same input file
-in a ``MAIN_DEPENDENCY`` specfication more than once.
-The ``NEW`` behavior is to disallow using the same input file in a
-``MAIN_DEPENDENCY`` specification more than once.
-
-This policy was introduced in CMake version 3.3.
-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.
+This policy is reserved for future use.