Skip to content

Commit

Permalink
cmake: respect -DTESSDATA_PREFIX=/path (on linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed May 25, 2019
1 parent c69ee9a commit e44c60c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/Configure.cmake
Expand Up @@ -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} "
Expand Down

0 comments on commit e44c60c

Please sign in to comment.