Replace ENABLE_UNIT_TESTS with NETCDF_ENABLE_UNIT_TESTS

This commit is contained in:
Kyle Shores 2024-03-18 15:41:15 -05:00
parent a82659b0e9
commit ff1307b62d
2 changed files with 4 additions and 4 deletions

View File

@ -790,7 +790,7 @@ if(NETCDF_ENABLE_TESTS)
# Option to turn on unit testing. See
# https://github.com/Unidata/netcdf-c/pull/1472 for more information.
###
option(ENABLE_UNIT_TESTS "Run Unit Tests." ON)
option(NETCDF_ENABLE_UNIT_TESTS "Run Unit Tests." ON)
###
# Option to turn on performance testing.
@ -1463,9 +1463,9 @@ if(NETCDF_ENABLE_TESTS)
if(NETCDF_ENABLE_BENCHMARKS)
add_subdirectory(nc_perf)
endif(NETCDF_ENABLE_BENCHMARKS)
if(ENABLE_UNIT_TESTS)
if(NETCDF_ENABLE_UNIT_TESTS)
add_subdirectory(unit_test)
endif(ENABLE_UNIT_TESTS)
endif(NETCDF_ENABLE_UNIT_TESTS)
if(NETCDF_ENABLE_NCZARR)
add_subdirectory(nczarr_test)
endif()

View File

@ -244,7 +244,7 @@ macro(print_conf_summary)
message(STATUS "Parallel Tests: ${NETCDF_ENABLE_PARALLEL_TESTS}")
message(STATUS "Large File Tests: ${NETCDF_ENABLE_LARGE_FILE_TESTS}")
message(STATUS "Extreme Numbers: ${NETCDF_ENABLE_EXTREME_NUMBERS}")
message(STATUS "Unit Tests: ${ENABLE_UNIT_TESTS}")
message(STATUS "Unit Tests: ${NETCDF_ENABLE_UNIT_TESTS}")
endif()
message("")