From: Roman Donchenko Date: Fri, 21 Feb 2014 12:08:49 +0000 (+0400) Subject: Hardcode iOS's endianness, since the TestBigEndian module doesn't work there X-Git-Tag: accepted/tizen/ivi/20140515.103456~1^2~63^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cf75c0cabff9699ab80d078629f9af0f71f1ec1;p=profile%2Fivi%2Fopencv.git Hardcode iOS's endianness, since the TestBigEndian module doesn't work there --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b5fbb9f..fb49497 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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