Skip to content

Commit

Permalink
Add Leptonica's pkg-config-found library directory to the search path
Browse files Browse the repository at this point in the history
  • Loading branch information
cysp committed Oct 3, 2017
1 parent 1b4fb3a commit a538cd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a538cd1

Please sign in to comment.