ECC-688: move endianess tests to eccodes

This commit is contained in:
Tiago Quintino 2018-05-19 17:49:38 +01:00
parent 9f5e09c654
commit 97b6c7a8b7
1 changed files with 4 additions and 1 deletions

View File

@ -59,6 +59,9 @@ check_c_source_compiles(
include(eccodes_test_endiness)
ecbuild_debug("ECCODES_BIG_ENDIAN=${ECCODES_BIG_ENDIAN}")
ecbuild_debug("ECCODES_LITTLE_ENDIAN=${ECCODES_LITTLE_ENDIAN}")
###############################################################################
# some variables/options of this project
@ -219,7 +222,7 @@ else()
set( GRIB_TIMER 0 )
endif()
set( IS_BIG _ENDIAN 0 )
set( IS_BIG_ENDIAN 0 )
if( ECCODES_BIG_ENDIAN )
set( IS_BIG_ENDIAN 1 )
endif()