ECC-1336: CMake: Introduce ECCODES_ON_LINUX_32BIT variable for testing

This commit is contained in:
Shahram Najm 2022-01-31 17:09:41 +00:00
parent 0a2c5f3727
commit 53cd2489a1
3 changed files with 8 additions and 1 deletions

View File

@ -306,6 +306,11 @@ if( IEEE_LE )
set( IEEE_BE 0 )
endif()
set( ECCODES_ON_LINUX_32BIT 0 )
if( EC_OS_NAME MATCHES "linux" AND EC_OS_BITS EQUAL "32" )
set( ECCODES_ON_LINUX_32BIT 1 )
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.

View File

@ -43,6 +43,7 @@ HAVE_PNG=@HAVE_PNG@
HAVE_AEC=@HAVE_AEC@
HAVE_EXTRA_TESTS=@HAVE_EXTRA_TESTS@
HAVE_MEMFS=@HAVE_MEMFS@
ECCODES_ON_LINUX_32BIT=@ECCODES_ON_LINUX_32BIT@
ECCODES_ON_WINDOWS=@ECCODES_ON_WINDOWS@
echo "Current directory: `pwd`"

View File

@ -20,8 +20,9 @@ else
echo
echo "TEST: $0"
# Only Unix supported
# Only Unix 64bit supported
ECCODES_ON_WINDOWS=0
ECCODES_ON_LINUX_32BIT=0
data_dir=""
# save current working dir