Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit b730196

Browse files
committed
iOS platform can be detected by 'IOS' variable
Do not set CMAKE_SYSTEM_NAME to avoid CMake noise about unknown platform
1 parent 48467db commit b730196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ include(cmake/OpenCVModule.cmake)
470470
# Detect endianness of build platform
471471
# ----------------------------------------------------------------------------
472472

473-
if(CMAKE_SYSTEM_NAME STREQUAL iOS)
473+
if(IOS)
474474
# test_big_endian needs try_compile, which doesn't work for iOS
475475
# http://public.kitware.com/Bug/view.php?id=12288
476476
set(WORDS_BIGENDIAN 0)

0 commit comments

Comments
 (0)