diff options
Diffstat (limited to 'cmake/FindGZIP.cmake')
| -rw-r--r-- | cmake/FindGZIP.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/FindGZIP.cmake b/cmake/FindGZIP.cmake new file mode 100644 index 0000000..ca15d5a --- /dev/null +++ b/cmake/FindGZIP.cmake @@ -0,0 +1,14 @@ +# This scripts search up bzip2 binary and put it to the +# GZIP_TOOL varable. +FIND_PROGRAM(GZIP_TOOL + NAMES gzip + PATHS + /bin + /usr/bin + /usr/local/bin +) +IF(NOT GZIP_TOOL) + IF(GZIP_REQUIRED) + MESSAGE(FATAL_ERROR "Unable to find 'gzip' executable") + ENDIF(GZIP_REQUIRED) +ENDIF(NOT GZIP_TOOL) |