We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0970227 commit b48abd8Copy full SHA for b48abd8
CMakeLists.txt
@@ -46,8 +46,9 @@ set(VERSION_PLAIN ${VERSION_MAJOR}.${VERSION_MINOR})
46
47
set(MINIMUM_LEPTONICA_VERSION 1.71)
48
49
-if (NOT Leptonica_DIR)
50
-find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED)
+if (NOT Leptonica_DIR AND NOT MSVC)
+find_package(PkgConfig REQUIRED)
51
+pkg_check_modules(Leptonica REQUIRED lept)
52
else()
53
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED CONFIG)
54
endif()
cmake/FindLeptonica.cmake
0 commit comments