From 0788098b8020dfa8c24194ec60f6d07e1675d205 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Fri, 9 Oct 2015 18:22:04 +0300 Subject: [PATCH] Fix Linux build with Leptonica_BUILD_DIR. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bd0a59381..44b4ac5dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,7 @@ set(MINIMUM_LEPTONICA_VERSION 1.71) if (NOT Leptonica_BUILD_DIR) find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED) else() +set(Leptonica_DIR ${Leptonica_BUILD_DIR}) find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED CONFIG) endif()