File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ endif()
143
143
###############################################################################
144
144
145
145
if (NOT CPPAN_BUILD)
146
- if (NOT Leptonica_DIR AND NOT MSVC )
146
+ if (NOT Leptonica_DIR AND NOT MSVC AND COMMAND pkg_check_modules )
147
147
find_package (PkgConfig REQUIRED)
148
148
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION} )
149
149
link_directories (${Leptonica_LIBRARY_DIRS} )
@@ -292,7 +292,11 @@ include_directories(src/textord)
292
292
include_directories (src/viewer)
293
293
include_directories (src/wordrec)
294
294
if (CMAKE_EXPORT_COMPILE_COMMANDS)
295
- include_directories (src/training)
295
+ include_directories (src/training)
296
+ endif ()
297
+ if (ANDROID_TOOLCHAIN)
298
+ include_directories (${ANDROID_TOOLCHAIN} /sysroot/usr/include )
299
+ add_compile_definitions (__ANDROID_API_FUTURE__)
296
300
endif ()
297
301
298
302
########################################
You can’t perform that action at this time.
0 commit comments