summaryrefslogtreecommitdiff
path: root/cmake/FindBZIP2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindBZIP2.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)