提交 087576f2 编写于 作者: Z Zdenko Podobný

cmake: fix linux build

上级 546a9e81
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册