summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <cb@shoutrlabs.com>2016-05-30 15:03:14 +0200
committerChristian Beier <cb@shoutrlabs.com>2016-05-30 15:03:14 +0200
commitcb66df0779e3510fa64d1fef30f9238f7ac8ea84 (patch)
tree17b4de4ffb907b722ea9603cc81f6825ba356790
parentcada820645c0d3293cf51d73aa80695f14793cc2 (diff)
downloadlibtdevnc-cb66df0779e3510fa64d1fef30f9238f7ac8ea84.tar.gz
libtdevnc-cb66df0779e3510fa64d1fef30f9238f7ac8ea84.zip
CMake: Not all platforms have endian.h, so use the build system's endianess check.
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aad3f71..05892ff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,7 @@ project(LibVNCServer)
include(CheckFunctionExists)
include(CheckIncludeFile)
include(CheckTypeSize)
+include(TestBigEndian)
include(CheckCSourceCompiles)
include(CheckCXXSourceCompiles)
include(CheckCSourceRuns)
@@ -173,6 +174,8 @@ if(NOT HAVE_LIBVNCSERVER_IN_ADDR_T)
set(LIBVNCSERVER_NEED_INADDR_T 1)
endif(NOT HAVE_LIBVNCSERVER_IN_ADDR_T)
+TEST_BIG_ENDIAN(LIBVNCSERVER_WORDS_BIGENDIAN)
+
# TODO:
# LIBVNCSERVER_ENOENT_WORKAROUND
# inline