mirror of https://github.com/ecmwf/eccodes.git
Testing: provide variable to detect if running tests on M$oft Windows
This commit is contained in:
parent
190251afe3
commit
894ca64bf2
|
@ -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
|
||||
|
|
|
@ -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`"
|
||||
|
|
Loading…
Reference in New Issue