Permalink
Browse files

Add Leptonica's pkg-config-found library directory to the search path

  • Loading branch information...
cysp committed Oct 3, 2017
1 parent 1b4fb3a commit a538cd126ba126d05c9e6cb3b11361f0808e19b3
Showing with 1 addition and 0 deletions.
  1. +1 −0 CMakeLists.txt
View
@@ -50,6 +50,7 @@ if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.cppan)
if (NOT Leptonica_DIR AND NOT MSVC)
find_package(PkgConfig REQUIRED)
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})
link_directories(${Leptonica_LIBRARY_DIRS})
else()
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED CONFIG)
endif()

0 comments on commit a538cd1

Please sign in to comment.