Skip to content

Commit

Permalink
cmake: fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Apr 29, 2019
1 parent 546a9e8 commit 087576f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -143,8 +143,11 @@ endif()
###############################################################################

if(NOT CPPAN_BUILD)
find_package(PkgConfig)
if (NOT Leptonica_DIR AND NOT MSVC AND COMMAND pkg_check_modules)
find_package(PkgConfig REQUIRED)
if(NOT PKG_CONFIG_EXECUTABLE)
message(FATAL_ERROR "Missing required pkg-config")
endif()
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})
link_directories(${Leptonica_LIBRARY_DIRS})
else()
Expand Down

0 comments on commit 087576f

Please sign in to comment.