summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-05-31 17:43:55 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2019-06-10 18:35:28 (GMT)
commit54ec4c1e799759798cc2b625f1e6a9e5efb4a78e (patch)
tree4d1692a66b39b2adf651a66e19f7a8c6c7d38fff
parent1f9ef25130caa89969cc69b4873edf1723533a5f (diff)
downloadCMake-54ec4c1e799759798cc2b625f1e6a9e5efb4a78e.zip
CMake-54ec4c1e799759798cc2b625f1e6a9e5efb4a78e.tar.gz
CMake-54ec4c1e799759798cc2b625f1e6a9e5efb4a78e.tar.bz2
GetPrerequisites: Add deprecation notice
GetPrerequisites has now been superceded by file(GET_RUNTIME_DEPENDENCIES), so add a deprecation notice stating such.
-rw-r--r--Help/release/dev/get-runtime-dependencies.rst2
-rw-r--r--Modules/GetPrerequisites.cmake4
2 files changed, 6 insertions, 0 deletions
diff --git a/Help/release/dev/get-runtime-dependencies.rst b/Help/release/dev/get-runtime-dependencies.rst
index ef7bba4..b9dc6e6 100644
--- a/Help/release/dev/get-runtime-dependencies.rst
+++ b/Help/release/dev/get-runtime-dependencies.rst
@@ -5,3 +5,5 @@ get-runtime-dependencies
``GET_RUNTIME_DEPENDENCIES``, which allows you to recursively get the list of
libraries linked by an executable or library. This sub-command is intended as
a replacement for :module:`GetPrerequisites`.
+* The :module:`GetPrerequisites` module has been deprecated, as it has been
+ superceded by :command:`file(GET_RUNTIME_DEPENDENCIES)`.
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index 5be4676..41d9dc1 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -5,6 +5,10 @@
GetPrerequisites
----------------
+.. deprecated:: 3.16
+
+ Use :command:`file(GET_RUNTIME_DEPENDENCIES)` instead.
+
Functions to analyze and list executable file prerequisites.
This module provides functions to list the .dll, .dylib or .so files