mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-01 16:28:09 +08:00
Fix the default for API_VERSION to only allow one default (#3107)
This commit is contained in:
parent
b9f988ed63
commit
8265bf31c9
@ -794,9 +794,6 @@ endif ()
|
||||
#-----------------------------------------------------------------------------
|
||||
# Option to use 1.12.x API
|
||||
#-----------------------------------------------------------------------------
|
||||
if (NOT DEFAULT_API_VERSION)
|
||||
set (DEFAULT_API_VERSION "v112")
|
||||
endif ()
|
||||
set (H5_USE_112_API_DEFAULT 0)
|
||||
if (DEFAULT_API_VERSION MATCHES "v112")
|
||||
set (H5_USE_112_API_DEFAULT 1)
|
||||
@ -805,9 +802,6 @@ endif ()
|
||||
#-----------------------------------------------------------------------------
|
||||
# Option to use 1.14.x API
|
||||
#-----------------------------------------------------------------------------
|
||||
if (NOT DEFAULT_API_VERSION)
|
||||
set (DEFAULT_API_VERSION "v114")
|
||||
endif ()
|
||||
set (H5_USE_114_API_DEFAULT 0)
|
||||
if (DEFAULT_API_VERSION MATCHES "v114")
|
||||
set (H5_USE_114_API_DEFAULT 1)
|
||||
|
Loading…
Reference in New Issue
Block a user