Skip to content

Commit

Permalink
leptonica: update to 1.85.0
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre committed Oct 16, 2024
1 parent 2480b13 commit 038a707
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
6 changes: 3 additions & 3 deletions thirdparty/leptonica/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if(NOT ANDROID AND NOT APPLE AND NOT WIN32 AND NOT EMULATE_READER)
}
]==] HAS_FMEMOPEN_2_4)
if(HAS_FMEMOPEN_2_4)
list(APPEND PATCH_FILES leptonica-1.74.1-fmemopen-arm-compat-symbol.patch)
list(APPEND PATCH_FILES fmemopen-arm-compat-symbol.patch)
endif()
endif()
list(APPEND PATCH_FILES
Expand Down Expand Up @@ -57,8 +57,8 @@ endif()
external_project(
# NOTE: Needs to match the version used by whatever version of libk2pdfopt we're currently using...
# Probably applies to mupdf & tesseract, too...
DOWNLOAD URL 58f37c12b1e9473c0c7ac0b1259e6a5c
https://github.com/DanBloomberg/leptonica/archive/refs/tags/1.84.1.tar.gz
DOWNLOAD URL 9450017d7c9269cae1fad59b6cd06a3e
https://github.com/DanBloomberg/leptonica/archive/refs/tags/1.85.0.tar.gz
PATCH_FILES ${PATCH_FILES}
CMAKE_ARGS ${CMAKE_ARGS}
BUILD_COMMAND ${BUILD_CMD}
Expand Down
11 changes: 1 addition & 10 deletions thirdparty/leptonica/cmake_tweaks.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@
#
# ##############################################################################

-cmake_minimum_required(VERSION 3.1.3)
-cmake_minimum_required(VERSION 3.5)
-cmake_policy(SET CMP0054 NEW)
+cmake_minimum_required(VERSION 3.15)

# In-source builds are disabled.
if("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
@@ -43,8 +42,8 @@ project(
leptonica
LANGUAGES C
VERSION 1.84.1)
-set(CMAKE_C_STANDARD 17)
+set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)

# Standard installation paths

0 comments on commit 038a707

Please sign in to comment.