diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fe53c069b..fe7c08d7c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,11 @@ endif(NOT CMAKE_TOOLCHAIN_FILE) # -------------------------------------------------------------- # Top level OpenCV project # -------------------------------------------------------------- -cmake_minimum_required(VERSION 2.6) +if(NOT IOS) + cmake_minimum_required(VERSION 2.6) +else() + cmake_minimum_required(VERSION 2.8) +endif() project(OpenCV) set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE) diff --git a/doc/tutorials/introduction/ios_install/ios_install.rst b/doc/tutorials/introduction/ios_install/ios_install.rst index 4b4f551604..7516ce0db7 100644 --- a/doc/tutorials/introduction/ios_install/ios_install.rst +++ b/doc/tutorials/introduction/ios_install/ios_install.rst @@ -7,7 +7,7 @@ Required packages ================== * GCC 4.x or later - * CMake 2.6 or higher + * CMake 2.8 or higher * Xcode 4.0 or higher Getting the cutting-edge OpenCV from SourceForge SVN repository