Skip to content

Commit

Permalink
Add error message with cmake 3.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Dec 26, 2016
1 parent c124f87 commit c160f80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c160f80

Please sign in to comment.