mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-27 13:31:02 +08:00
Fixed endianness check for cmake
Signed-off-by: Markus Engel <engel@sero-systems.de>
This commit is contained in:
parent
ef868b712f
commit
687f27726c
@ -17,7 +17,9 @@ TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
|
||||
SET(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
|
||||
ADD_DEFINITIONS(-DPACKAGE_VERSION="${PACKAGE_VERSION}")
|
||||
ADD_DEFINITIONS(-DPACKAGE_STRING="${PACKAGE_STRING}")
|
||||
ADD_DEFINITIONS(-DWORDS_BIGENDIAN=${WORDS_BIGENDIAN})
|
||||
if (${WORDS_BIGENDIAN})
|
||||
ADD_DEFINITIONS(-DWORDS_BIGENDIAN)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
# using Visual Studio C++
|
||||
|
Loading…
x
Reference in New Issue
Block a user