From 0847682c47ee518dcf0195f2336a68c83030fb4b Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Wed, 11 Jan 2023 20:48:39 -0500 Subject: FindUnixCommands: Deprecate in favor of cmake -E `${CMAKE_COMMAND} -E` subcommands are cross-platform replacements. Fixes: #24263 --- Help/manual/cmake-modules.7.rst | 2 +- Modules/FindUnixCommands.cmake | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Help/manual/cmake-modules.7.rst b/Help/manual/cmake-modules.7.rst index 0daffab..448d8ba 100644 --- a/Help/manual/cmake-modules.7.rst +++ b/Help/manual/cmake-modules.7.rst @@ -251,7 +251,6 @@ They are normally called through the :command:`find_package` command. /module/FindTclStub /module/FindThreads /module/FindTIFF - /module/FindUnixCommands /module/FindVulkan /module/FindWget /module/FindWish @@ -298,6 +297,7 @@ Deprecated Find Modules /module/FindPythonInterp /module/FindPythonLibs /module/FindQt + /module/FindUnixCommands /module/FindVTK /module/FindwxWindows diff --git a/Modules/FindUnixCommands.cmake b/Modules/FindUnixCommands.cmake index 97739fa..d71518f 100644 --- a/Modules/FindUnixCommands.cmake +++ b/Modules/FindUnixCommands.cmake @@ -5,6 +5,10 @@ FindUnixCommands ---------------- +.. deprecated:: 3.26 + + Use :option:`${CMAKE_COMMAND} -E ` subcommands instead. + Find Unix commands, including the ones from Cygwin This module looks for the Unix commands ``bash``, ``cp``, ``gzip``, -- cgit v0.12