Skip to content

Commit

Permalink
only build tst_zstd with cmake when zstd is present
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 7, 2024
1 parent e1305f1 commit 01649e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nc_test4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SET(NC4_TESTS tst_dims tst_dims2 tst_dims3 tst_files tst_files4
tst_rename2 tst_rename3 tst_h5_endians tst_atts_string_rewrite tst_put_vars_two_unlim_dim
tst_hdf5_file_compat tst_fill_attr_vanish tst_rehash tst_types tst_bug324
tst_atts3 tst_put_vars tst_elatefill tst_udf tst_bug1442 tst_broken_files
tst_quantize tst_h_transient_types tst_zstd)
tst_quantize tst_h_transient_types)

IF(HAS_PAR_FILTERS)
SET(NC4_tests $NC4_TESTS tst_alignment)
Expand Down Expand Up @@ -102,6 +102,10 @@ IF(HAVE_H5Z_SZIP)
ENDIF()
ENDIF()

IF(HAVE_ZSTD)
BUILD_BIN_TEST(tst_zstd)
ENDIF()


# Copy some test files from current source dir to out-of-tree build dir.
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.nc ${CMAKE_CURRENT_SOURCE_DIR}/ref_bzip2.c ${CMAKE_CURRENT_SOURCE_DIR}/*.sh ${CMAKE_CURRENT_SOURCE_DIR}/*.h5 ${CMAKE_CURRENT_SOURCE_DIR}/*.cdl)
Expand Down

0 comments on commit 01649e0

Please sign in to comment.