Fix the default for API_VERSION to only allow one default (#3107)

This commit is contained in:
Allen Byrne 2023-06-12 22:01:34 -05:00 committed by GitHub
parent b9f988ed63
commit 8265bf31c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)