Fixed endianness check for cmake

Signed-off-by: Markus Engel <engel@sero-systems.de>
This commit is contained in:
Markus Engel 2019-09-17 13:29:14 +02:00 committed by Robert Edmonds
parent ef868b712f
commit 687f27726c

View File

@ -17,7 +17,9 @@ TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
SET(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") SET(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
ADD_DEFINITIONS(-DPACKAGE_VERSION="${PACKAGE_VERSION}") ADD_DEFINITIONS(-DPACKAGE_VERSION="${PACKAGE_VERSION}")
ADD_DEFINITIONS(-DPACKAGE_STRING="${PACKAGE_STRING}") ADD_DEFINITIONS(-DPACKAGE_STRING="${PACKAGE_STRING}")
ADD_DEFINITIONS(-DWORDS_BIGENDIAN=${WORDS_BIGENDIAN}) if (${WORDS_BIGENDIAN})
ADD_DEFINITIONS(-DWORDS_BIGENDIAN)
endif()
if(MSVC) if(MSVC)
# using Visual Studio C++ # using Visual Studio C++