Use cmake policy CMP0074 only with version 3.12 or newer

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2022-01-01 23:00:47 +01:00
parent a185c068d1
commit e1764e1bc8

View File

@ -1,7 +1,9 @@
#
# tesseract
#
cmake_policy(SET CMP0074 NEW)
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.12.0")
cmake_policy(SET CMP0074 NEW)
endif()
if(UNIX AND NOT ANDROID)
set(LIB_pthread pthread)