Use find_dependency instead of find_package

This commit is contained in:
Shatur95 2020-12-11 18:05:09 +02:00
parent 66175f9745
commit 30e2516337

View File

@ -15,9 +15,10 @@
#
# ===================================================================================
include(${CMAKE_CURRENT_LIST_DIR}/tesseract/TesseractTargets.cmake)
include(CMakeFindDependencyMacro)
find_dependency(Leptonica)
find_package(Leptonica REQUIRED)
include(${CMAKE_CURRENT_LIST_DIR}/tesseract/TesseractTargets.cmake)
@PACKAGE_INIT@