summaryrefslogtreecommitdiff
path: root/cmake/FindBZIP2.cmake
blob: 6b26aa1f5f0bd261c234d720a8cc770271bccb7f (plain)
1
2
3
4
5
6
7
8
9
10
11
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)