summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-04 15:23:28 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-12-04 15:23:28 (GMT)
commit470c549c622ddddd0be3ae63945e40a1cad85923 (patch)
treeb4520ae2546ae2c466a4c16f208ecbd4bc112a71
parentc7bd2753932d1f2bec0b66c042b999a95d5bb713 (diff)
parentff50046b78e23f8d8f23ea8b44dc1012edb0d792 (diff)
downloadCMake-470c549c622ddddd0be3ae63945e40a1cad85923.zip
CMake-470c549c622ddddd0be3ae63945e40a1cad85923.tar.gz
CMake-470c549c622ddddd0be3ae63945e40a1cad85923.tar.bz2
Merge topic 'FindUnixCommands-use-FPHSA'
ff50046b FindUnixCommand: Use FPHSA to report status in standard way
-rw-r--r--Modules/FindUnixCommands.cmake12
1 files changed, 9 insertions, 3 deletions
diff --git a/Modules/FindUnixCommands.cmake b/Modules/FindUnixCommands.cmake
index d4e5dcd..869ba38 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
+)