build: detect endianness at compile time
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
620fde1213
commit
b780be7578
|
@ -28,6 +28,11 @@ add_definitions(-std=gnu99 -ggdb3 -fno-strict-aliasing -Wall -Wextra
|
|||
-Wstrict-prototypes)
|
||||
# }}}
|
||||
|
||||
# {{{ Endianness
|
||||
include(TestBigEndian)
|
||||
TEST_BIG_ENDIAN(AWESOME_IS_BIG_ENDIAN)
|
||||
# }}}
|
||||
|
||||
# {{{ Find external utilities
|
||||
macro(a_find_program var prg req)
|
||||
set(required ${req})
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#define AWESOME_LUA_LIB_PATH "@AWESOME_LUA_LIB_PATH@"
|
||||
#define XDG_CONFIG_DIR "@XDG_CONFIG_DIR@"
|
||||
#define AWESOME_IS_BIG_ENDIAN @AWESOME_IS_BIG_ENDIAN@
|
||||
|
||||
#cmakedefine WITH_DBUS
|
||||
|
||||
|
|
Loading…
Reference in New Issue