Skip to content

Commit c160f80

Browse files
committed
Add error message with cmake 3.6.
1 parent c124f87 commit c160f80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
cmake_minimum_required(VERSION 2.8.11)
1212

13+
if (WIN32 AND CMAKE_VERSION VERSION_EQUAL 3.6 OR (CMAKE_VERSION VERSION_GREATER 3.6 AND CMAKE_VERSION VERSION_LESS 3.7))
14+
message(FATAL_ERROR "You have bugged CMake version 3.6 which is known to not work with tesseract. Please, upgrade CMake.")
15+
endif()
16+
1317
# In-source builds are disabled.
1418
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
1519
message(FATAL_ERROR

0 commit comments

Comments
 (0)