summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeRD (Frank Dana) <ferdnyc@gmail.com>2023-01-11 20:48:39 -0500
committerFeRD (Frank Dana) <ferdnyc@gmail.com>2023-01-12 11:34:48 -0500
commit0847682c47ee518dcf0195f2336a68c83030fb4b (patch)
tree80a0e9198342188a30f553d4def846236e23b790
parente4c281e45196b3c3fa2f327476838ac77b76e838 (diff)
downloadcmake-0847682c47ee518dcf0195f2336a68c83030fb4b.tar.gz
FindUnixCommands: Deprecate in favor of cmake -E
`${CMAKE_COMMAND} -E` subcommands are cross-platform replacements. Fixes: #24263
-rw-r--r--Help/manual/cmake-modules.7.rst2
-rw-r--r--Modules/FindUnixCommands.cmake4
2 files changed, 5 insertions, 1 deletions
diff --git a/Help/manual/cmake-modules.7.rst b/Help/manual/cmake-modules.7.rst
index 0daffab6b9..448d8ba56e 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 97739fa146..d71518f253 100644
--- a/Modules/FindUnixCommands.cmake
+++ b/Modules/FindUnixCommands.cmake
@@ -5,6 +5,10 @@
FindUnixCommands
----------------
+.. deprecated:: 3.26
+
+ Use :option:`${CMAKE_COMMAND} -E <cmake -E>` subcommands instead.
+
Find Unix commands, including the ones from Cygwin
This module looks for the Unix commands ``bash``, ``cp``, ``gzip``,