From 54ec4c1e799759798cc2b625f1e6a9e5efb4a78e Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Fri, 31 May 2019 13:43:55 -0400 Subject: GetPrerequisites: Add deprecation notice GetPrerequisites has now been superceded by file(GET_RUNTIME_DEPENDENCIES), so add a deprecation notice stating such. --- Help/release/dev/get-runtime-dependencies.rst | 2 ++ Modules/GetPrerequisites.cmake | 4 ++++ 2 files changed, 6 insertions(+) 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 -- cgit v0.12