Skip to content

Commit

Permalink
another improvement for ca0be2f
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed May 17, 2019
1 parent e92a424 commit 5282cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ if(CPPAN_BUILD)
add_subdirectory(.cppan)
else()
find_package(PkgConfig)
if(PKG_CONFIG_EXECUTABLE)
if(PKG_CONFIG_EXECUTABLE and NOT Leptonica_DIR)
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})
link_directories(${Leptonica_LIBRARY_DIRS})
else()
Expand Down

0 comments on commit 5282cdf

Please sign in to comment.