Browse Source

GetPrerequisites: Add deprecation notice

GetPrerequisites has now been superceded by file(GET_RUNTIME_DEPENDENCIES),
so add a deprecation notice stating such.
Kyle Edwards 6 years ago
parent
commit
54ec4c1e79
2 changed files with 6 additions and 0 deletions
  1. 2 0
      Help/release/dev/get-runtime-dependencies.rst
  2. 4 0
      Modules/GetPrerequisites.cmake

+ 2 - 0
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)`.

+ 4 - 0
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