Skip to content

Commit c41a80f

Browse files
committed
respect cmake -DCPPAN_BUILD=OFF
1 parent 7a83bb3 commit c41a80f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ endif()
101101
###############################################################################
102102

103103
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.cppan)
104+
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.cppan OR NOT CPPAN_BUILD)
104105
if (NOT Leptonica_DIR AND NOT MSVC)
105106
find_package(PkgConfig REQUIRED)
106107
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})

0 commit comments

Comments
 (0)