Skip to content

Commit

Permalink
cmake: do not try to configure training tools without PkgConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Dec 18, 2021
1 parent 2ee90ff commit b565cfe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b565cfe

Please sign in to comment.