summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorTomáš Chvátal <scarabeus@gentoo.org>2009-05-22 16:36:49 +0200
committerTomáš Chvátal <scarabeus@gentoo.org>2009-05-22 16:36:49 +0200
commit1a20b9d154051db97fe1bb72dba6e521db670d32 (patch)
tree7fb51a4cf4a105b6a905aab6e5af8656a89fa73e /cmake
parent52671935e3337cf0b76259964aa539a72869f486 (diff)
Compress documentation by default.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindBZIP2.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/FindBZIP2.cmake b/cmake/FindBZIP2.cmake
new file mode 100644
index 0000000..6b26aa1
--- /dev/null
+++ b/cmake/FindBZIP2.cmake
@@ -0,0 +1,12 @@
+# This scripts search up bzip2 binary and put it to the
+# BZIP2_TOOL varable.
+FIND_PROGRAM(BZIP2_TOOL
+ NAMES bzip2
+ PATHS
+ /bin
+ /usr/bin
+ /usr/local/bin
+)
+IF(NOT BZIP2_TOOL)
+ MESSAGE(FATAL_ERROR "Unable to find 'bzip2' executable")
+ENDIF(NOT BZIP2_TOOL)