summaryrefslogtreecommitdiffstats
path: root/Modules/FindUnixCommands.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindUnixCommands.cmake')
-rw-r--r--Modules/FindUnixCommands.cmake163
1 files changed, 74 insertions, 89 deletions
diff --git a/Modules/FindUnixCommands.cmake b/Modules/FindUnixCommands.cmake
index c402ad5..568f3bc 100644
--- a/Modules/FindUnixCommands.cmake
+++ b/Modules/FindUnixCommands.cmake
@@ -4,92 +4,77 @@
INCLUDE(${CMAKE_ROOT}/Modules/FindCygwin.cmake)
-IF (CYGWIN_INSTALL_PATH)
-
- FIND_PROGRAM(BASH
- bash
- ${CYGWIN_INSTALL_PATH}/bin
- )
-
- FIND_PROGRAM(CP
- cp
- ${CYGWIN_INSTALL_PATH}/bin
- )
-
- FIND_PROGRAM(GZIP
- gzip
- ${CYGWIN_INSTALL_PATH}/bin
- )
-
- FIND_PROGRAM(MV
- mv
- ${CYGWIN_INSTALL_PATH}/bin
- )
-
- FIND_PROGRAM(RM
- rm
- ${CYGWIN_INSTALL_PATH}/bin
- )
-
- FIND_PROGRAM(TAR
- NAMES
- tar
- gtar
- PATH
- ${CYGWIN_INSTALL_PATH}/bin
- )
-
-ELSE (CYGWIN_INSTALL_PATH)
-
- FIND_PROGRAM(BASH
- bash
- /bin
- /usr/bin
- /usr/local/bin
- /sbin
- )
-
- FIND_PROGRAM(CP
- cp
- /bin
- /usr/bin
- /usr/local/bin
- /sbin
- )
-
- FIND_PROGRAM(GZIP
- gzip
- /bin
- /usr/bin
- /usr/local/bin
- /sbin
- )
-
- FIND_PROGRAM(MV
- mv
- /bin
- /usr/bin
- /usr/local/bin
- /sbin
- )
-
- FIND_PROGRAM(RM
- rm
- /bin
- /usr/bin
- /usr/local/bin
- /sbin
- )
-
- FIND_PROGRAM(TAR
- NAMES
- tar
- gtar
- PATH
- /bin
- /usr/bin
- /usr/local/bin
- /sbin
- )
-
-ENDIF (CYGWIN_INSTALL_PATH)
+FIND_PROGRAM(BASH
+ bash
+ ${CYGWIN_INSTALL_PATH}/bin
+ /bin
+ /usr/bin
+ /usr/local/bin
+ /sbin
+)
+MARK_AS_ADVANCED(
+ BASH
+)
+
+FIND_PROGRAM(CP
+ cp
+ ${CYGWIN_INSTALL_PATH}/bin
+ /bin
+ /usr/bin
+ /usr/local/bin
+ /sbin
+)
+MARK_AS_ADVANCED(
+ CP
+)
+
+FIND_PROGRAM(GZIP
+ gzip
+ ${CYGWIN_INSTALL_PATH}/bin
+ /bin
+ /usr/bin
+ /usr/local/bin
+ /sbin
+)
+MARK_AS_ADVANCED(
+ GZIP
+)
+
+FIND_PROGRAM(MV
+ mv
+ ${CYGWIN_INSTALL_PATH}/bin
+ /bin
+ /usr/bin
+ /usr/local/bin
+ /sbin
+)
+MARK_AS_ADVANCED(
+ MV
+)
+
+FIND_PROGRAM(RM
+ rm
+ ${CYGWIN_INSTALL_PATH}/bin
+ /bin
+ /usr/bin
+ /usr/local/bin
+ /sbin
+)
+MARK_AS_ADVANCED(
+ RM
+)
+
+FIND_PROGRAM(TAR
+ NAMES
+ tar
+ gtar
+ PATH
+ ${CYGWIN_INSTALL_PATH}/bin
+ /bin
+ /usr/bin
+ /usr/local/bin
+ /sbin
+)
+MARK_AS_ADVANCED(
+ TAR
+)