mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Integrating a big endian test.
This commit is contained in:
parent
6ff5ebf12f
commit
581737b04e
@ -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}")
|
||||
|
@ -615,6 +615,8 @@ are set when opening a binary file on Windows. */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#cmakedefine WORDS_BIGENDIAN
|
||||
|
||||
#include "ncconfigure.h"
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user