cmake: respect -DTESSDATA_PREFIX=/path (on linux)

This commit is contained in:
zdenop 2019-05-25 08:31:26 +02:00
parent c69ee9af24
commit e44c60c3b2

View File

@ -123,6 +123,13 @@ file(APPEND ${AUTOCONFIG_SRC} "
#cmakedefine HAVE_LIBARCHIVE ${HAVE_LIBARCHIVE}
")
if(TESSDATA_PREFIX)
add_definitions(-DTESSDATA_PREFIX=${TESSDATA_PREFIX})
file(APPEND ${AUTOCONFIG_SRC} "
#cmakedefine TESSDATA_PREFIX ${TESSDATA_PREFIX}
")
endif()
test_big_endian(WORDS_BIGENDIAN)
file(APPEND ${AUTOCONFIG_SRC} "