mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-12 15:45:21 +08:00
Corrected an issue with toggling the V2 API, that I had introduced earlier today.
This commit is contained in:
parent
6f9b470b64
commit
f575c30b4e
@ -481,8 +481,9 @@ ENDIF()
|
||||
|
||||
# Option to build netCDF Version 2
|
||||
OPTION (ENABLE_V2_API "Build netCDF Version 2." ON)
|
||||
SET(BUILD_V2 ${ENABLE_V2_API})
|
||||
IF(NOT ENABLE_V2_API)
|
||||
SET(NO_NETCDF_2 ON)
|
||||
SET(NO_NETCDF_2 ON)
|
||||
ENDIF()
|
||||
|
||||
# Option to build utilities
|
||||
@ -1122,7 +1123,7 @@ ENDIF()
|
||||
# Enable tests
|
||||
IF(ENABLE_TESTS)
|
||||
IF(ENABLE_V2_API)
|
||||
ADD_SUBDIRECTORY(nctest)
|
||||
ADD_SUBDIRECTORY(nctest)
|
||||
ENDIF()
|
||||
ADD_SUBDIRECTORY(nc_test)
|
||||
IF(USE_NETCDF4)
|
||||
|
@ -2,7 +2,6 @@ SET(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
INCLUDE_DIRECTORIES(".")
|
||||
|
||||
|
||||
SET(nctest_SRC add.c atttests.c cdftests.c dimtests.c driver.c emalloc.c error.c misctest.c rec.c slabs.c val.c vardef.c varget.c vargetg.c varput.c varputg.c vartests.c vputget.c vputgetg.c)
|
||||
|
||||
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.nc)
|
||||
|
Loading…
Reference in New Issue
Block a user