From d74fee2727617778aafe42dc6ea7519876efe9a8 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 2 Mar 2022 11:00:06 +0100 Subject: 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 --- cmake/config.h.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmake') 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 */ -- cgit v1.2.1