Update CMakeLists.txt

This commit is contained in:
Egor Pugin 2016-12-26 17:35:50 +03:00 committed by GitHub
parent 3566a1d467
commit 1127d0145e

View File

@ -10,9 +10,11 @@
cmake_minimum_required(VERSION 2.8.11)
if (NOT APPVEYOR)
if (WIN32 AND CMAKE_VERSION VERSION_EQUAL 3.6 OR (CMAKE_VERSION VERSION_GREATER 3.6 AND CMAKE_VERSION VERSION_LESS 3.7))
message(FATAL_ERROR "You have bugged CMake version 3.6 which is known to not work with tesseract. Please, upgrade CMake.")
endif()
endif()
# In-source builds are disabled.
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})