Skip to content

Commit 0970227

Browse files
committed
Update CMakeLists.txt
1 parent 354526e commit 0970227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ set(VERSION_PLAIN ${VERSION_MAJOR}.${VERSION_MINOR})
4646

4747
set(MINIMUM_LEPTONICA_VERSION 1.71)
4848

49-
if (NOT WIN32)
49+
if (NOT Leptonica_DIR)
5050
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED)
5151
else()
5252
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED CONFIG)

0 commit comments

Comments
 (0)