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)