diff options
author | Teus Benschop <teusjannette@gmail.com> | 2018-10-28 11:51:26 +0100 |
---|---|---|
committer | Teus Benschop <teusjannette@gmail.com> | 2018-10-28 11:51:26 +0100 |
commit | 1d0ff54794b5edea7cdf1d2d66710a0fa885bcc5 (patch) | |
tree | 8ece5f9ef437fbb151f2b22ed0c6e1a714879c7c /cmake/FindBZIP2.cmake | |
parent | c7dbdc9161a7c460526b80fe01af49d714856126 (diff) |
New upstream version 1.8.1
Diffstat (limited to 'cmake/FindBZIP2.cmake')
-rw-r--r-- | cmake/FindBZIP2.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cmake/FindBZIP2.cmake b/cmake/FindBZIP2.cmake new file mode 100644 index 0000000..3f0c3eb --- /dev/null +++ b/cmake/FindBZIP2.cmake @@ -0,0 +1,28 @@ +# - Try to find BZIP2 +# Once done this will define +# +# BZIP2_FOUND - system has BZIP2 +# BZIP2_INCLUDE_DIR - the BZIP2 include directory +# BZIP2_LIBRARY - Link these to use BZIP2 +# BZIP2_DEFINITIONS - Compiler switches required for using BZIP2 + +# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org> +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + + +IF (BZIP2_INCLUDE_DIR AND BZIP2_LIBRARY) + SET(BZIP2_FIND_QUIETLY TRUE) +ENDIF (BZIP2_INCLUDE_DIR AND BZIP2_LIBRARY) + +FIND_PATH(BZIP2_INCLUDE_DIR bzlib.h ) + +FIND_LIBRARY(BZIP2_LIBRARY bz2 ) + +# handle the QUIETLY and REQUIRED arguments and set BZIP2_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(BZIP2 DEFAULT_MSG BZIP2_LIBRARY BZIP2_INCLUDE_DIR) + +MARK_AS_ADVANCED(BZIP2_INCLUDE_DIR BZIP2_LIBRARY) |