Skip to content

Commit

Permalink
cmake: do not try to even configure training tools if pkg-config is n…
Browse files Browse the repository at this point in the history
…ot present.
  • Loading branch information
zdenop committed Dec 20, 2021
1 parent 8f02255 commit bcf7bbb
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 @@ -346,6 +346,10 @@ if(SW_BUILD)
sw_execute()
else()
find_package(PkgConfig)
if(BUILD_TRAINING_TOOLS and NOT PKG_CONFIG_FOUND)
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 bcf7bbb

Please sign in to comment.