2016-05-07 06:30:40 +08:00
|
|
|
# Is netcdf-4 and/or DAP enabled?
|
2017-01-19 12:46:47 +08:00
|
|
|
NC4=1
|
|
|
|
DAP=1
|
2016-05-07 06:30:40 +08:00
|
|
|
|
2016-01-09 03:55:11 +08:00
|
|
|
# Is visual studio being used?
|
2017-01-19 12:46:47 +08:00
|
|
|
VS=yes
|
|
|
|
#CYGWIN=yes
|
|
|
|
|
2016-01-09 03:55:11 +08:00
|
|
|
|
|
|
|
if test "x$VS" = x ; then
|
|
|
|
#CC=mpicc
|
|
|
|
CC=gcc
|
|
|
|
else
|
2017-01-19 12:46:47 +08:00
|
|
|
VSSTRING="Visual Studio 12 2013 Win64"
|
|
|
|
G="-G\"$VSSTRING\""
|
2016-01-09 03:55:11 +08:00
|
|
|
fi
|
|
|
|
|
2017-01-19 12:46:47 +08:00
|
|
|
export CC
|
2016-01-06 13:26:20 +08:00
|
|
|
|
2017-01-19 12:46:47 +08:00
|
|
|
FLAGS="-DCMAKE_PREFIX_PATH=c:/tools/nccmake"
|
2016-01-09 03:55:11 +08:00
|
|
|
|
2016-05-07 06:30:40 +08:00
|
|
|
if test "x$DAP" = x ; then
|
|
|
|
FLAGS="$FLAGS -DENABLE_DAP=false"
|
|
|
|
fi
|
|
|
|
if test "x$NC4" = x ; then
|
|
|
|
FLAGS="$FLAGS -DENABLE_NETCDF_4=false"
|
|
|
|
fi
|
|
|
|
FLAGS="$FLAGS -DENABLE_CONVERSION_WARNINGS=false"
|
2015-08-16 06:26:35 +08:00
|
|
|
FLAGS="$FLAGS -DENABLE_DAP_REMOTE_TESTS=true"
|
2017-01-20 00:59:17 +08:00
|
|
|
FLAGS="$FLAGS -DENABLE_TESTS=true"
|
2015-11-30 11:38:12 +08:00
|
|
|
|
2016-01-09 03:55:11 +08:00
|
|
|
rm -fr build
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
|
2017-01-19 12:46:47 +08:00
|
|
|
cmake -GVisual\ Studio\ 14\ 2015 $FLAGS ${ZLIB} ${HDF5} ${CURL} ..
|
2017-01-20 00:59:17 +08:00
|
|
|
#cmake --build .
|
2016-01-09 03:55:11 +08:00
|
|
|
CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --target test
|