Replace ENABLE_BASH_SCRIPT_TESTING with NETCDF_ENABLE_BASH_SCRIPT_TESTING

This commit is contained in:
Kyle Shores 2024-03-18 15:31:34 -05:00
parent e934438e14
commit 4b0611bf71
4 changed files with 5 additions and 22 deletions

View File

@ -1337,9 +1337,9 @@ endif()
# Determine if 'bash' is on the system.
##
option(ENABLE_BASH_SCRIPT_TESTING "Detection is typically automatic, but this option can be used to force enable/disable bash-script based tests." ON)
option(NETCDF_ENABLE_BASH_SCRIPT_TESTING "Detection is typically automatic, but this option can be used to force enable/disable bash-script based tests." ON)
if(ENABLE_BASH_SCRIPT_TESTING)
if(NETCDF_ENABLE_BASH_SCRIPT_TESTING)
find_program(HAVE_BASH bash)
if(HAVE_BASH)
string(COMPARE EQUAL "${HAVE_BASH}" "C:/Windows/System32/bash.exe" IS_BASH_EXE)
@ -1352,9 +1352,9 @@ if(ENABLE_BASH_SCRIPT_TESTING)
else()
message(STATUS "Bash shell not found; disabling shell script tests.")
endif()
else(ENABLE_BASH_SCRIPT_TESTING)
else(NETCDF_ENABLE_BASH_SCRIPT_TESTING)
set(HAVE_BASH "")
endif(ENABLE_BASH_SCRIPT_TESTING)
endif(NETCDF_ENABLE_BASH_SCRIPT_TESTING)
# Create config.h file.
configure_file("${netCDF_SOURCE_DIR}/config.h.cmake.in"

View File

@ -36,7 +36,7 @@ build: off
build_script:
- cmd: mkdir build
- cmd: cd build
- cmd: cmake .. -G "%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%INSTALL_LOC% -DENABLE_BASH_SCRIPT_TESTING=OFF -DENABLE_FILTER_TESTING=OFF -DENABLE_BYTERANGE=ON
- cmd: cmake .. -G "%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%INSTALL_LOC% -DNETCDF_ENABLE_BASH_SCRIPT_TESTING=OFF -DENABLE_FILTER_TESTING=OFF -DENABLE_BYTERANGE=ON
- cmd: if errorlevel 1 exit 1
- cmd: cmake --build . --config Release -- /maxcpucount:4

View File

@ -1,14 +0,0 @@
#!/bin/bash
# NC_FIND_SHARED_LIBS
# NC_USE_STATIC_CRT
# NETCDF_PACKAGE
while IFS= read -r -u 3 var
do
prefixed_var="NETCDF_$var"
echo "Replacing $var with $prefixed_var..."
grep --exclude=variables.txt -rl "$var" . | xargs sed -i '' "s/$var/$prefixed_var/g"
echo "Press enter to continue to the next variable..."
read
done 3< variables.txt

View File

@ -1,6 +1,3 @@
BUILD_UTILITIES
DOXYGEN_ENABLE_TASKS
ENABLE_ATEXIT_FINALIZE
ENABLE_BASH_SCRIPT_TESTING
ENABLE_BENCHMARKS
ENABLE_BYTERANGE