Integrating a big endian test.

This commit is contained in:
Ward Fisher 2017-02-08 14:51:41 -07:00
parent 6ff5ebf12f
commit 581737b04e
2 changed files with 8 additions and 0 deletions

View File

@ -101,6 +101,12 @@ INCLUDE(${CMAKE_ROOT}/Modules/GetPrerequisites.cmake)
INCLUDE(CheckCCompilerFlag)
FIND_PACKAGE(PkgConfig QUIET)
# Check for Big Endian
TEST_BIG_ENDIAN(BIGENDIAN)
IF(${BIGENDIAN})
SET(WORDS_BIGENDIAN "1")
ENDIF(${BIGENDIAN})
# A macro to check if a C linker supports a particular flag.
MACRO(CHECK_C_LINKER_FLAG M_FLAG M_RESULT)
SET(T_REQ_FLAG "${CMAKE_REQUIRED_FLAGS}")

View File

@ -615,6 +615,8 @@ are set when opening a binary file on Windows. */
#endif
#endif
#cmakedefine WORDS_BIGENDIAN
#include "ncconfigure.h"
#endif