Skip to content

Commit

Permalink
respect cmake -DCPPAN_BUILD=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Jan 6, 2019
1 parent 7a83bb3 commit c41a80f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -101,6 +101,7 @@ endif()
###############################################################################

if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.cppan)
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.cppan OR NOT CPPAN_BUILD)
if (NOT Leptonica_DIR AND NOT MSVC)
find_package(PkgConfig REQUIRED)
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})
Expand Down

0 comments on commit c41a80f

Please sign in to comment.