Skip to content

Commit

Permalink
Merge branch 'gh2712-parity.wif' of github.com:WardF/netcdf-c into gh…
Browse files Browse the repository at this point in the history
…2712-parity.wif
  • Loading branch information
WardF committed Jul 24, 2023
2 parents b65bba0 + c6b853a commit 11e589d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ macro(set_std_filter filter)
# Upper case the filter name
string(TOUPPER "${filter}" upfilter)
string(TOLOWER "${filter}" downfilter)
if(ENABLE_${upfilter})
if(ENABLE_FILTER_${upfilter})
# Define a test flag for filter
IF(${filter}_FOUND)
INCLUDE_DIRECTORIES(${${filter}_INCLUDE_DIRS})
Expand All @@ -1128,11 +1128,13 @@ ENDIF()
endmacro(set_std_filter)

# Locate some compressors
OPTION(ENABLE_SZIP "Enable use of Szip compression library if it is available." ON)
OPTION(ENABLE_FILTER_SZIP "Enable use of Szip compression library if it is available. Required if ENABLE_NCZARR is true." ON)
OPTION(ENABLE_FILTER_BZ2 "Enable use of Bz2 compression library if it is available." ON)
OPTION(ENABLE_FILTER_BLOSC "Enable use of blosc compression library if it is available." ON)
OPTION(ENABLE_FILTER_ZSTD "Enable use of Zstd compression library if it is available." ON)
IF (ENABLE_SZIP)
IF (ENABLE_FILTER_SZIP)
FIND_PACKAGE(Szip)
ELSEIF(ENABLE_NCZARR)
FIND_PACKAGE(Szip)
ENDIF()
IF (ENABLE_FILTER_BZ2)
Expand Down

0 comments on commit 11e589d

Please sign in to comment.