From b565cfee9b51153d97bfaafcfcb0dcdd9c6c2d9a Mon Sep 17 00:00:00 2001 From: zdenop Date: Sat, 18 Dec 2021 09:29:20 +0100 Subject: [PATCH] cmake: do not try to configure training tools without PkgConfig --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f51d31d9..fe221560 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -336,6 +336,10 @@ if (SW_BUILD) sw_execute() else() find_package(PkgConfig) + if(BUILD_TRAINING_TOOLS) + message(WARNING "Building of Training Tools requires PkgConfig") + set(BUILD_TRAINING_TOOLS OFF) + endif(BUILD_TRAINING_TOOLS) # Check for required library. # option -DLeptonica_DIR=path => cmake hint where to find leptonica find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} CONFIG)