Skip to content

Commit

Permalink
try to fix ca0be2f
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed May 17, 2019
1 parent af3dd1a commit e92a424
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,20 +150,16 @@ if(CPPAN_BUILD)
endif()
add_subdirectory(.cppan)
else()
if(Leptonica_DIR)
message(STATUS "Using Leptonica directory ${Leptonica_DIR} for build.")
find_package(PkgConfig)
if(PKG_CONFIG_EXECUTABLE)
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})
link_directories(${Leptonica_LIBRARY_DIRS})
else()
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION})
if (NOT Leptonica_FOUND)
find_package(PkgConfig)
if(PKG_CONFIG_EXECUTABLE)
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})
link_directories(${Leptonica_LIBRARY_DIRS})
else()
message(FATAL_ERROR "Cannot find required library Leptonica. Quitting!")
endif(PKG_CONFIG_EXECUTABLE)
endif()
endif()
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED CONFIG)
endif(PKG_CONFIG_EXECUTABLE)
if (NOT Leptonica_FOUND)
message(FATAL_ERROR "Cannot find required library Leptonica. Quitting!")
endif(NOT Leptonica_FOUND)
endif()

find_package(OpenCL QUIET)
Expand Down

0 comments on commit e92a424

Please sign in to comment.