diff options
author | Braden McDaniel <braden@endoframe.com> | 2019-08-20 22:07:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-21 16:00:11 (GMT) |
commit | 5edceff308b82a2c27946e0c80961c7d6699f0f9 (patch) | |
tree | 01724253f8907d75171e9b8384473b8bc6c344c1 /Modules/FindBZip2.cmake | |
parent | 43fe736b2bf272647fb24b481bdc9a585c0666ac (diff) | |
download | CMake-5edceff308b82a2c27946e0c80961c7d6699f0f9.zip CMake-5edceff308b82a2c27946e0c80961c7d6699f0f9.tar.gz CMake-5edceff308b82a2c27946e0c80961c7d6699f0f9.tar.bz2 |
FindBZip2: Add Windows library names emitted from bzip2 1.0.6 makefile
As of release 1.0.6, the bzip2 distribution includs a makefile for nmake
on Windows that emits library names of the form `libbz2.lib`.
Diffstat (limited to 'Modules/FindBZip2.cmake')
-rw-r--r-- | Modules/FindBZip2.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindBZip2.cmake b/Modules/FindBZip2.cmake index 309b971..98ab72c 100644 --- a/Modules/FindBZip2.cmake +++ b/Modules/FindBZip2.cmake @@ -45,8 +45,8 @@ set(_BZIP2_PATHS PATHS find_path(BZIP2_INCLUDE_DIR bzlib.h ${_BZIP2_PATHS} PATH_SUFFIXES include) if (NOT BZIP2_LIBRARIES) - find_library(BZIP2_LIBRARY_RELEASE NAMES bz2 bzip2 ${_BZIP2_PATHS} PATH_SUFFIXES lib) - find_library(BZIP2_LIBRARY_DEBUG NAMES bz2d bzip2d ${_BZIP2_PATHS} PATH_SUFFIXES lib) + find_library(BZIP2_LIBRARY_RELEASE NAMES bz2 bzip2 libbz2 libbzip2 ${_BZIP2_PATHS} PATH_SUFFIXES lib) + find_library(BZIP2_LIBRARY_DEBUG NAMES bz2d bzip2d libbz2d libbzip2d ${_BZIP2_PATHS} PATH_SUFFIXES lib) include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake) SELECT_LIBRARY_CONFIGURATIONS(BZIP2) |