You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
390 B
CMake
15 lines
390 B
CMake
# Add the definitions to indicate which endian we are building for.
|
|
#
|
|
# add_endian_definition()
|
|
#
|
|
function(add_endian_definition)
|
|
include(TestBigEndian)
|
|
TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
|
|
|
|
if (IS_BIG_ENDIAN)
|
|
add_definitions(-DTTD_ENDIAN=TTD_BIG_ENDIAN)
|
|
else (IS_BIG_ENDIAN)
|
|
add_definitions(-DTTD_ENDIAN=TTD_LITTLE_ENDIAN)
|
|
endif (IS_BIG_ENDIAN)
|
|
endfunction()
|