mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 12:40:05 +08:00
Hardcode iOS's endianness, since the TestBigEndian module doesn't work there
This commit is contained in:
parent
3e5890694e
commit
1cf75c0cab
@ -448,8 +448,15 @@ include(cmake/OpenCVModule.cmake)
|
||||
# ----------------------------------------------------------------------------
|
||||
# Detect endianness of build platform
|
||||
# ----------------------------------------------------------------------------
|
||||
include(TestBigEndian)
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL iOS)
|
||||
# test_big_endian needs try_compile, which doesn't work for iOS
|
||||
# http://public.kitware.com/Bug/view.php?id=12288
|
||||
set(WORDS_BIGENDIAN 0)
|
||||
else()
|
||||
include(TestBigEndian)
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
endif()
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Detect 3rd-party libraries
|
||||
|
Loading…
Reference in New Issue
Block a user