Fix Linux build with Leptonica_BUILD_DIR.

This commit is contained in:
Egor Pugin 2015-10-09 18:22:04 +03:00
parent dfb5aa5c34
commit 0788098b80

View File

@ -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()