add cmake -L option help string for ENABLE_CDF5

This commit is contained in:
Wei-keng Liao 2018-06-28 13:17:08 -05:00
parent 5d16b2ddcc
commit 02dca6a541

View File

@ -306,6 +306,12 @@ ENDIF()
# Option checks
################################
set(ENABLE_CDF5 AUTO CACHE STRING "Enable CDF5 support")
set_property(CACHE ENABLE_CDF5 PROPERTY STRINGS AUTO ON OFF)
IF(NOT ENABLE_CDF5 STREQUAL "AUTO" AND NOT ENABLE_CDF5 STREQUAL "ON" AND NOT ENABLE_CDF5 STREQUAL "OFF")
MESSAGE(FATAL_ERROR "Invalid value (\"${ENABLE_CDF5}\") used in setting ENABLE_CDF5")
ENDIF(NOT ENABLE_CDF5 STREQUAL "AUTO" AND NOT ENABLE_CDF5 STREQUAL "ON" AND NOT ENABLE_CDF5 STREQUAL "OFF")
# HDF5 cache variables.
SET(DEFAULT_CHUNK_SIZE 4194304 CACHE STRING "Default Chunk Cache Size.")
SET(DEFAULT_CHUNKS_IN_CACHE 10 CACHE STRING "Default number of chunks in cache.")