Replace ENABLE_EXAMPLES with NETCDF_ENABLE_EXAMPLES

This commit is contained in:
Kyle Shores 2024-03-18 15:35:33 -05:00
parent 7263727d49
commit 086401f86f
2 changed files with 3 additions and 3 deletions

View File

@ -395,7 +395,7 @@ option(NETCDF_BUILD_UTILITIES "Build ncgen, ncgen3, ncdump." ON)
option(ENABLE_MMAP "Use MMAP." ON)
# Option to use examples.
option(ENABLE_EXAMPLES "Build Examples" ON)
option(NETCDF_ENABLE_EXAMPLES "Build Examples" ON)
###
# Allow the user to specify libraries
@ -1457,7 +1457,7 @@ if(ENABLE_TESTS)
if(NETCDF_ENABLE_DAP4)
add_subdirectory(dap4_test)
endif()
if(ENABLE_EXAMPLES)
if(NETCDF_ENABLE_EXAMPLES)
add_subdirectory(examples)
endif()
if(NETCDF_ENABLE_BENCHMARKS)

2
wjna
View File

@ -20,7 +20,7 @@ FLAGS="-DHDF5_DIR=${CPP}/cmake/hdf5 ${FLAGS}"
FLAGS="-DNETCDF_ENABLE_CONVERSION_WARNINGS=OFF ${FLAGS}"
FLAGS="-DNETCDF_BUILD_UTILITIES=OFF ${FLAGS}"
FLAGS="-DENABLE_EXAMPLES=OFF ${FLAGS}"
FLAGS="-DNETCDF_ENABLE_EXAMPLES=OFF ${FLAGS}"
FLAGS="-DENABLE_V2_API=OFF ${FLAGS}"
FLAGS="-DENABLE_JNA=ON ${FLAGS}"