Skip to content

Commit

Permalink
[cmake] fix warnings with cmake >= 3.17
Browse files Browse the repository at this point in the history
  • Loading branch information
wsnipex committed Jun 21, 2020
1 parent 55585e0 commit 741dab2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions FindBZip2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# BZIP2_INCLUDE_DIRS - the bzip2 include directory
# BZIP2_LIBRARIES - The bzip2 libraries

include(FindPkgConfig)
find_package(PkgConfig)

if(PKG_CONFIG_FOUND)
Expand All @@ -16,8 +15,7 @@ find_path(BZIP2_INCLUDE_DIRS bzlib.h PATHS ${PC_BZIP2_INCLUDEDIR})
find_library(BZIP2_LIBRARIES bz2 PATHS ${PC_BZIP2_LIBDIR})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Gmp DEFAULT_MSG BZIP2_INCLUDE_DIRS BZIP2_LIBRARIES)
find_package_handle_standard_args(BZip2 DEFAULT_MSG BZIP2_INCLUDE_DIRS BZIP2_LIBRARIES)

mark_as_advanced(BZIP2_INCLUDE_DIRS BZIP2_LIBRARIES BZIP2_DEFINITIONS)
#mark_as_advanced(BZIP2_DEFINITIONS)
mark_as_advanced(BZIP2_INCLUDE_DIRS BZIP2_LIBRARIES)

0 comments on commit 741dab2

Please sign in to comment.