diff options
Diffstat (limited to 'HDF5Examples/C/H5D/C_sourcefiles.cmake')
-rw-r--r-- | HDF5Examples/C/H5D/C_sourcefiles.cmake | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/HDF5Examples/C/H5D/C_sourcefiles.cmake b/HDF5Examples/C/H5D/C_sourcefiles.cmake index 65c19a0..87e0d6f 100644 --- a/HDF5Examples/C/H5D/C_sourcefiles.cmake +++ b/HDF5Examples/C/H5D/C_sourcefiles.cmake @@ -30,9 +30,14 @@ if (HDF5_ENABLE_SZIP_SUPPORT) ) endif () -set (1_8_examples - h5ex_d_nbit - h5ex_d_sofloat - h5ex_d_soint - h5ex_d_transform -) +if (HDF5_VERSION_MAJOR VERSION_GREATER_EQUAL "1.8" AND NOT ${${EXAMPLE_VARNAME}_USE_16_API}) + set (1_8_examples + h5ex_d_nbit + h5ex_d_sofloat + h5ex_d_soint + h5ex_d_transform + ) +else () + set (1_8_examples) +endif () + |