Skip to content

Commit 0788098

Browse files
committed
Fix Linux build with Leptonica_BUILD_DIR.
1 parent dfb5aa5 commit 0788098

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ set(MINIMUM_LEPTONICA_VERSION 1.71)
4949
if (NOT Leptonica_BUILD_DIR)
5050
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED)
5151
else()
52+
set(Leptonica_DIR ${Leptonica_BUILD_DIR})
5253
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED CONFIG)
5354
endif()
5455

0 commit comments

Comments
 (0)