summaryrefslogtreecommitdiff
path: root/Modules/FindUnixCommands.cmake
diff options
context:
space:
mode:
authorChristoph GrĂ¼ninger <foss@grueninger.de>2014-12-03 14:35:37 +0100
committerBrad King <brad.king@kitware.com>2014-12-03 10:04:59 -0500
commitff50046b78e23f8d8f23ea8b44dc1012edb0d792 (patch)
treed1ed5599547cc96a7aa905742371627715a57c9a /Modules/FindUnixCommands.cmake
parentdc3b222143d16ef0af6e6450f7869ec418b911d7 (diff)
downloadcmake-ff50046b78e23f8d8f23ea8b44dc1012edb0d792.tar.gz
FindUnixCommand: Use FPHSA to report status in standard way
Otherwise the UnixCommands were marked as not found in the summary. Also revise the documentation.
Diffstat (limited to 'Modules/FindUnixCommands.cmake')
-rw-r--r--Modules/FindUnixCommands.cmake12
1 files changed, 9 insertions, 3 deletions
diff --git a/Modules/FindUnixCommands.cmake b/Modules/FindUnixCommands.cmake
index d4e5dcdf72..869ba38d94 100644
--- a/Modules/FindUnixCommands.cmake
+++ b/Modules/FindUnixCommands.cmake
@@ -2,12 +2,13 @@
# FindUnixCommands
# ----------------
#
-# Find unix commands from cygwin
+# Find Unix commands, including the ones from Cygwin
#
-# This module looks for some usual Unix commands.
+# This module looks for the Unix commands bash, cp, gzip, mv, rm, and tar
+# and stores the result in the variables BASH, CP, GZIP, MV, RM, and TAR.
#=============================================================================
-# Copyright 2001-2009 Kitware, Inc.
+# Copyright 2001-2014 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
@@ -95,3 +96,8 @@ find_program(TAR
mark_as_advanced(
TAR
)
+
+include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
+find_package_handle_standard_args(UnixCommands
+ REQUIRED_VARS BASH CP GZIP MV RM TAR
+)