cmake: avoid an unnecessary intermediate variable

This commit is contained in:
Ben Boeckel 2017-12-29 12:46:16 -05:00
parent 0f2624713b
commit 8d3c75b99f

View File

@ -405,19 +405,7 @@ endif()
# CPU endianness # CPU endianness
include(TestBigEndian) include(TestBigEndian)
test_big_endian(bigendian) test_big_endian(HOST_BIG_ENDIAN)
if (bigendian)
set(bigendian ON)
else()
set(bigendian OFF)
endif()
set(HOST_BIG_ENDIAN ${bigendian} CACHE STRING "Native CPU bit order")
mark_as_advanced(HOST_BIG_ENDIAN)
if (HOST_BIG_ENDIAN)
set(HOST_BIG_ENDIAN 1)
else()
set(HOST_BIG_ENDIAN 0)
endif()
# IEEE floating point # IEEE floating point
set(HAVE_IEEEFP 1 CACHE STRING "IEEE floating point is available") set(HAVE_IEEEFP 1 CACHE STRING "IEEE floating point is available")