Skip to content

Commit

Permalink
Improve leptonica search.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Jan 26, 2016
1 parent 0970227 commit b48abd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 54 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ set(VERSION_PLAIN ${VERSION_MAJOR}.${VERSION_MINOR})

set(MINIMUM_LEPTONICA_VERSION 1.71)

if (NOT Leptonica_DIR)
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED)
if (NOT Leptonica_DIR AND NOT MSVC)
find_package(PkgConfig REQUIRED)
pkg_check_modules(Leptonica REQUIRED lept)
else()
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED CONFIG)
endif()
Expand Down
52 changes: 0 additions & 52 deletions cmake/FindLeptonica.cmake

This file was deleted.

0 comments on commit b48abd8

Please sign in to comment.