cmake: avoid an unnecessary intermediate variable
This commit is contained in:
parent
0f2624713b
commit
8d3c75b99f
@ -405,19 +405,7 @@ endif()
|
||||
|
||||
# CPU endianness
|
||||
include(TestBigEndian)
|
||||
test_big_endian(bigendian)
|
||||
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()
|
||||
test_big_endian(HOST_BIG_ENDIAN)
|
||||
|
||||
# IEEE floating point
|
||||
set(HAVE_IEEEFP 1 CACHE STRING "IEEE floating point is available")
|
||||
|
Loading…
Reference in New Issue
Block a user