cmake: avoid an unnecessary intermediate variable
This commit is contained in:
parent
bed3b0cb9d
commit
0f2624713b
@ -396,14 +396,12 @@ if(NOT HAVE_SNPRINTF)
|
||||
endif()
|
||||
|
||||
# CPU bit order
|
||||
set(fillorder FILLORDER_MSB2LSB)
|
||||
set(HOST_FILLORDER FILLORDER_MSB2LSB)
|
||||
if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i.*86.*" OR
|
||||
CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "amd64.*" OR
|
||||
CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "x86_64.*")
|
||||
set(fillorder FILLORDER_LSB2MSB)
|
||||
set(HOST_FILLORDER FILLORDER_LSB2MSB)
|
||||
endif()
|
||||
set(HOST_FILLORDER ${fillorder} CACHE STRING "Native CPU bit order")
|
||||
mark_as_advanced(HOST_FILLORDER)
|
||||
|
||||
# CPU endianness
|
||||
include(TestBigEndian)
|
||||
|
Loading…
Reference in New Issue
Block a user