diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dc6a94f..488fbab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -676,7 +676,10 @@ endif () #----------------------------------------------------------------------------- # Option to use 1.12.x API #----------------------------------------------------------------------------- -option (HDF5_USE_112_API_DEFAULT "Use the HDF5 1.12.x API by default" ON) +option (HDF5_USE_112_API_DEFAULT "Use the HDF5 1.12.x API by default" OFF) +if (NOT HDF5_USE_16_API_DEFAULT AND NOT HDF5_USE_18_API_DEFAULT AND NOT HDF5_USE_110_API_DEFAULT AND NOT HDF5_USE_112_API_DEFAULT) + set (HDF5_USE_112_API_DEFAULT ON) +endif () set (H5_USE_112_API_DEFAULT 0) if (HDF5_USE_112_API_DEFAULT) set (H5_USE_112_API_DEFAULT 1) |