mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
a5ffa8abca
trying to get travis to compile tst_fileinfo.
39 lines
707 B
CMake
39 lines
707 B
CMake
# Is netcdf-4 and/or DAP enabled?
|
|
NC4=1
|
|
DAP=1
|
|
|
|
# Is visual studio being used?
|
|
VS=yes
|
|
#CYGWIN=yes
|
|
|
|
|
|
if test "x$VS" = x ; then
|
|
#CC=mpicc
|
|
CC=gcc
|
|
else
|
|
VSSTRING="Visual Studio 12 2013 Win64"
|
|
G="-G\"$VSSTRING\""
|
|
fi
|
|
|
|
export CC
|
|
|
|
FLAGS="-DCMAKE_PREFIX_PATH=c:/tools/nccmake"
|
|
|
|
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"
|
|
FLAGS="$FLAGS -DENABLE_DAP_REMOTE_TESTS=true"
|
|
FLAGS="$FLAGS -DENABLE_TESTS=true"
|
|
|
|
rm -fr build
|
|
mkdir build
|
|
cd build
|
|
|
|
cmake -GVisual\ Studio\ 14\ 2015 $FLAGS ${ZLIB} ${HDF5} ${CURL} ..
|
|
#cmake --build .
|
|
CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --target test
|