Testing: provide variable to detect if running tests on M$oft Windows

This commit is contained in:
Shahram Najm 2019-12-12 11:08:31 +00:00
parent 190251afe3
commit 894ca64bf2
2 changed files with 3 additions and 1 deletions

View File

@ -292,10 +292,11 @@ if( IEEE_LE )
set( IEEE_BE 0 )
endif()
set( ECCODES_ON_WINDOWS 0 )
if( EC_OS_NAME MATCHES "windows" )
# Symbols need to be explicitly exported on Windows so we can link to dlls.
set( CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE )
set( ECCODES_ON_WINDOWS TRUE )
set( ECCODES_ON_WINDOWS 1 )
# Suppress compliler warnings - see ECC-850
# Suppress warnings about using 'insecure' functions. Fixing this would require changes all over

View File

@ -40,5 +40,6 @@ HAVE_PNG=@HAVE_PNG@
HAVE_AEC=@HAVE_AEC@
HAVE_EXTRA_TESTS=@HAVE_EXTRA_TESTS@
HAVE_MEMFS=@HAVE_MEMFS@
ECCODES_ON_WINDOWS=@ECCODES_ON_WINDOWS@
echo "Current directory: `pwd`"