diff options
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | twinkle_config.h.in | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ce718da..c20bd16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,7 @@ include (CheckIncludeFiles) include (CheckSymbolExists) include (CMakePushCheckState) include (CheckCXXSourceCompiles) +include (TestBigEndian) find_package(LibXml2 REQUIRED) find_package(LibMagic REQUIRED) @@ -150,6 +151,8 @@ check_cxx_source_compiles(" " HAVE_RES_INIT) cmake_pop_check_state() +test_big_endian(WORDS_BIGENDIAN) + set(datadir "${CMAKE_INSTALL_PREFIX}/share/twinkle") configure_file(twinkle_config.h.in twinkle_config.h) configure_file(twinkle.desktop.in twinkle.desktop) diff --git a/twinkle_config.h.in b/twinkle_config.h.in index 9e32712..2f03cf2 100644 --- a/twinkle_config.h.in +++ b/twinkle_config.h.in @@ -11,6 +11,7 @@ #cmakedefine HAVE_STRERROR_R #cmakedefine STRERROR_R_CHAR_P #cmakedefine HAVE_RES_INIT +#cmakedefine WORDS_BIGENDIAN #cmakedefine HAVE_LIBASOUND #define VERSION "${PRODUCT_VERSION}" |