summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-01-30 22:53:06 +0100
committerSlávek Banko <slavek.banko@axis.cz>2017-01-30 22:53:06 +0100
commit7cc97cb18734939136579c086bf6758f3a4c18ad (patch)
tree8e69a267c53b22b5375cbc29b7d19e22e8092249 /CMakeLists.txt
parentd8d8c5e060212a15bca65f31e297f8edbf725fb0 (diff)
downloadtdelibs-7cc97cb18734939136579c086bf6758f3a4c18ad.tar.gz
tdelibs-7cc97cb18734939136579c086bf6758f3a4c18ad.zip
Fix detection whether the system is big endian
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c6fa9abdd..cf1cb11a8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -158,6 +158,9 @@ endif( NO_BUILTIN )
##### system checks #############################
+include(TestBigEndian)
+test_big_endian(WORDS_BIGENDIAN)
+
tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${CMAKE_SOURCE_DIR}/libltdl )
check_include_file( "ltdl.h" HAVE_LTDL_H )
if( NOT HAVE_LTDL_H )