CmakeLists.txt: define WORDS_BIGENDIAN when the CPU is big endian
fixes #184
This commit is contained in:
parent
7c8dafc28c
commit
35cc068275
@ -402,6 +402,9 @@ endif()
|
||||
# CPU endianness
|
||||
include(TestBigEndian)
|
||||
test_big_endian(HOST_BIG_ENDIAN)
|
||||
if(HOST_BIG_ENDIAN)
|
||||
add_definitions(-DWORDS_BIGENDIAN)
|
||||
endif()
|
||||
|
||||
# IEEE floating point
|
||||
set(HAVE_IEEEFP 1)
|
||||
|
Loading…
Reference in New Issue
Block a user