mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Replace ENABLE_BASH_SCRIPT_TESTING with NETCDF_ENABLE_BASH_SCRIPT_TESTING
This commit is contained in:
parent
e934438e14
commit
4b0611bf71
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
14
script.sh
14
script.sh
@ -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
|
@ -1,6 +1,3 @@
|
||||
BUILD_UTILITIES
|
||||
DOXYGEN_ENABLE_TASKS
|
||||
ENABLE_ATEXIT_FINALIZE
|
||||
ENABLE_BASH_SCRIPT_TESTING
|
||||
ENABLE_BENCHMARKS
|
||||
ENABLE_BYTERANGE
|
||||
|
Loading…
Reference in New Issue
Block a user