mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
cmake: respect -DTESSDATA_PREFIX=/path (on linux)
This commit is contained in:
parent
c69ee9af24
commit
e44c60c3b2
@ -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} "
|
||||
|
Loading…
Reference in New Issue
Block a user