We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 546a9e8 commit 087576fCopy full SHA for 087576f
CMakeLists.txt
@@ -143,8 +143,11 @@ endif()
143
###############################################################################
144
145
if(NOT CPPAN_BUILD)
146
+ find_package(PkgConfig)
147
if (NOT Leptonica_DIR AND NOT MSVC AND COMMAND pkg_check_modules)
- find_package(PkgConfig REQUIRED)
148
+ if(NOT PKG_CONFIG_EXECUTABLE)
149
+ message(FATAL_ERROR "Missing required pkg-config")
150
+ endif()
151
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})
152
link_directories(${Leptonica_LIBRARY_DIRS})
153
else()
0 commit comments