From c160f80133250e8642c8ed5a1b6bbf6b3d6458f0 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Mon, 26 Dec 2016 17:30:26 +0300 Subject: [PATCH] Add error message with cmake 3.6. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f7d12c98db..fad060a087 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,10 @@ cmake_minimum_required(VERSION 2.8.11) +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() + # In-source builds are disabled. if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) message(FATAL_ERROR