summaryrefslogtreecommitdiff
path: root/cmake/FindGZIP.cmake
diff options
context:
space:
mode:
authorTomáš Chvátal <scarabeus@gentoo.org>2009-05-23 13:45:54 +0200
committerTomáš Chvátal <scarabeus@gentoo.org>2009-05-23 13:45:54 +0200
commit8cf0c79d018669b9b424d543dbf901a3124a8b2f (patch)
tree36a77397334e087f523c1e8a411d805257d62883 /cmake/FindGZIP.cmake
parent1a20b9d154051db97fe1bb72dba6e521db670d32 (diff)
Switch to gzip, so xHire is happy that it will work on windows too.
Diffstat (limited to 'cmake/FindGZIP.cmake')
-rw-r--r--cmake/FindGZIP.cmake14
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)