summaryrefslogtreecommitdiff
path: root/cmake/modules/FindSH.cmake
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2009-09-24 20:42:08 +0000
committerJörg Mayer <jmayer@loplof.de>2009-09-24 20:42:08 +0000
commitc131599cf7726fa56538b8ea57736f49a7efbb8f (patch)
tree16b09ff24d173beaa411008f5e3898185e4da7f2 /cmake/modules/FindSH.cmake
parent5b6c7496dc5dfb1d8fa5ac443d14a0d953c1132e (diff)
downloadwireshark-c131599cf7726fa56538b8ea57736f49a7efbb8f.tar.gz
Slightly rework the detection code for some packages.
Make compile flag detection work (needed some not so nice hacks). svn path=/trunk/; revision=30129
Diffstat (limited to 'cmake/modules/FindSH.cmake')
-rw-r--r--cmake/modules/FindSH.cmake13
1 files changed, 3 insertions, 10 deletions
diff --git a/cmake/modules/FindSH.cmake b/cmake/modules/FindSH.cmake
index 394336e20e..ebfda9b9e4 100644
--- a/cmake/modules/FindSH.cmake
+++ b/cmake/modules/FindSH.cmake
@@ -18,15 +18,8 @@ FIND_PROGRAM(SH_EXECUTABLE
/sbin
)
-MARK_AS_ADVANCED(SH_EXECUTABLE)
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(SH DEFAULT_MSG SH_EXECUTABLE)
-# search sh
-MACRO(FIND_SH)
- IF(NOT SH_EXECUTABLE)
- FIND_PROGRAM(SH_EXECUTABLE sh)
- IF (NOT SH_EXECUTABLE)
- MESSAGE(FATAL_ERROR "sh not found - aborting")
- ENDIF (NOT SH_EXECUTABLE)
- ENDIF(NOT SH_EXECUTABLE)
-ENDMACRO(FIND_SH)
+MARK_AS_ADVANCED(SH_EXECUTABLE)