summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2022-03-02 11:00:06 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2022-03-02 14:35:54 +0100
commitd74fee2727617778aafe42dc6ea7519876efe9a8 (patch)
tree31c5954da40aac296f7aa3f9905d2b5253f035e0 /cmake
parent9b426c7916a98d24e61e6bbbe6c466e4e9b02fef (diff)
downloaddbus-d74fee2727617778aafe42dc6ea7519876efe9a8.tar.gz
cmake: setup variable WORDS_BIGENDIAN correctly
Since version 3.0 cmake provides the macro test_big_endian for that purpose. fixes #375 Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/config.h.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/config.h.cmake b/cmake/config.h.cmake
index 4215a903..06bb34fd 100644
--- a/cmake/config.h.cmake
+++ b/cmake/config.h.cmake
@@ -21,6 +21,9 @@
* should be placed in this file
*/
+/* AC_C_BIGENDIAN */
+#cmakedefine WORDS_BIGENDIAN
+
/* Opt-in to modern APIs and thread-safety for Solaris. In the Autotools
* build system we do the equivalent of this by appending to CFLAGS
* in configure.ac */