Skip to content

Commit 3669c38

Browse files
author
Klaus Zimmermann
committed
Switch custom Bzip2 cmake module to standard
1 parent 9137873 commit 3669c38

File tree

5 files changed

+12
-139
lines changed

5 files changed

+12
-139
lines changed

CMakeLists.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ endmacro(set_std_filter)
11251125

11261126
# Locate some compressors
11271127
FIND_PACKAGE(Szip)
1128-
FIND_PACKAGE(Bz2)
1128+
FIND_PACKAGE(BZip2)
11291129
FIND_PACKAGE(Blosc)
11301130
FIND_PACKAGE(Zstd)
11311131

@@ -1135,14 +1135,14 @@ set_std_filter(Szip)
11351135
SET(HAVE_SZ ${Szip_FOUND})
11361136
set_std_filter(Blosc)
11371137
set_std_filter(Zstd)
1138-
IF(Bz2_FOUND)
1139-
set_std_filter(Bz2)
1138+
IF(BZIP2_FOUND)
1139+
set_std_filter(BZIP2)
11401140
ELSE()
11411141
# The reason we use a local version is to support a more comples test case
11421142
MESSAGE("libbz2 not found using built-in version")
1143-
SET(HAVE_LOCAL_BZ2 ON)
1144-
SET(HAVE_BZ2 ON)
1145-
set(STD_FILTERS "${STD_FILTERS} bz2")
1143+
SET(HAVE_LOCAL_BZIP2 ON)
1144+
SET(HAVE_BZIP2 ON)
1145+
set(STD_FILTERS "${STD_FILTERS} bzip2")
11461146
ENDIF()
11471147

11481148
# If user wants, then install selected plugins (default on)
@@ -2562,7 +2562,8 @@ is_enabled(HAVE_SZ HAS_SZIP)
25622562
is_enabled(HAVE_SZ HAS_SZLIB_WRITE)
25632563
is_enabled(HAVE_ZSTD HAS_ZSTD)
25642564
is_enabled(HAVE_BLOSC HAS_BLOSC)
2565-
is_enabled(HAVE_BZ2 HAS_BZ2)
2565+
is_enabled(HAVE_BZIP2 HAS_BZIP2)
2566+
is_enabled(HAVE_BZIP2 HAS_BZ2)
25662567
is_enabled(ENABLE_REMOTE_FUNCTIONALITY DO_REMOTE_FUNCTIONALITY)
25672568

25682569
if(ENABLE_S3_INTERNAL)

cmake/modules/FindBz2.cmake

Lines changed: 0 additions & 64 deletions
This file was deleted.

cmake/modules/FindBzip2.cmake

Lines changed: 0 additions & 64 deletions
This file was deleted.

liblib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ ENDIF()
9191
IF(Zstd_FOUND)
9292
SET(TLL_LIBS ${TLL_LIBS} ${Zstd_LIBRARIES})
9393
ENDIF()
94-
IF(Bz2_FOUND)
95-
SET(TLL_LIBS ${TLL_LIBS} ${Bz2_LIBRARIES})
94+
IF(BZIP2_FOUND)
95+
SET(TLL_LIBS ${TLL_LIBS} ${BZIP2_LIBRARIES})
9696
ENDIF()
9797
IF(SZIP_FOUND)
9898
SET(TLL_LIBS ${TLL_LIBS} ${SZIP_LIBRARIES})

plugins/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ IF(HAVE_SZ)
9494
buildplugin(h5szip "h5szip" ${Szip_LIBRARIES})
9595
ENDIF()
9696

97-
IF(HAVE_LOCAL_BZ2)
97+
IF(HAVE_LOCAL_BZIP2)
9898
SET(h5bzip2_SOURCES H5Zbzip2.c blocksort.c huffman.c crctable.c randtable.c compress.c decompress.c bzlib.c bzlib.h bzlib_private.h)
9999
buildplugin(h5bzip2 "h5bzip2")
100100
ELSE()
101101
SET(h5bzip2_SOURCES H5Zbzip2.c)
102-
buildplugin(h5bzip2 "h5bzip2" ${Bzip2_LIBRARIES})
102+
buildplugin(h5bzip2 "h5bzip2" ${BZIP2_LIBRARIES})
103103
ENDIF()
104104

105105

0 commit comments

Comments
 (0)