Replace ENABLE_PARALLEL_TESTS with NETCDF_ENABLE_PARALLEL_TESTS

This commit is contained in:
Kyle Shores 2024-03-18 15:39:55 -05:00
parent 2baf0ba862
commit f54f42db62
2 changed files with 4 additions and 4 deletions

View File

@ -951,15 +951,15 @@ if(ENABLE_ZERO_LENGTH_COORD_BOUND)
endif()
# Enable Parallel Tests.
option(ENABLE_PARALLEL_TESTS "Enable Parallel IO Tests. Requires HDF5/NetCDF4 with parallel I/O Support." "${HDF5_PARALLEL}")
if(ENABLE_PARALLEL_TESTS AND USE_PARALLEL)
option(NETCDF_ENABLE_PARALLEL_TESTS "Enable Parallel IO Tests. Requires HDF5/NetCDF4 with parallel I/O Support." "${HDF5_PARALLEL}")
if(NETCDF_ENABLE_PARALLEL_TESTS AND USE_PARALLEL)
set(TEST_PARALLEL ON CACHE BOOL "")
if(USE_NETCDF4)
set(TEST_PARALLEL4 ON CACHE BOOL "")
endif()
endif()
IF (ENABLE_PARALLEL_TESTS AND NOT USE_PARALLEL)
IF (NETCDF_ENABLE_PARALLEL_TESTS AND NOT USE_PARALLEL)
message(FATAL_ERROR "Parallel tests requested, but no parallel HDF5 installation detected.")
endif()

View File

@ -241,7 +241,7 @@ macro(print_conf_summary)
message(STATUS "DAP Remote Tests: ${NETCDF_ENABLE_DAP_REMOTE_TESTS}")
message(STATUS "Extra Tests: ${NETCDF_ENABLE_EXTRA_TESTS}")
message(STATUS "Coverage Tests: ${NETCDF_ENABLE_COVERAGE_TESTS}")
message(STATUS "Parallel Tests: ${ENABLE_PARALLEL_TESTS}")
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}")