Skip to content

Commit 8209ce3

Browse files
stweilzdenop
authored andcommitted
cmake: Update version and add it to config_auto.h (#1402)
In a next step, the package version should be read from the VERSION file. Signed-off-by: Stefan Weil <[email protected]>
1 parent 81c4728 commit 8209ce3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMake Targets")
4141
project(tesseract C CXX)
4242

4343
set(VERSION_MAJOR 4)
44-
set(VERSION_MINOR 00)
45-
set(VERSION_PLAIN ${VERSION_MAJOR}.${VERSION_MINOR})
44+
set(VERSION_MINOR 0)
45+
set(VERSION_PLAIN ${VERSION_MAJOR}.${VERSION_MINOR}.0-beta.1)
4646

4747
set(MINIMUM_LEPTONICA_VERSION 1.74)
4848

cmake/Configure.cmake

+6
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ set(types_list
121121
)
122122
check_types(types_list)
123123

124+
set(PACKAGE_VERSION "${VERSION_PLAIN}")
125+
file(APPEND ${AUTOCONFIG_SRC} "
126+
/* Version number */
127+
#cmakedefine PACKAGE_VERSION \"${VERSION_PLAIN}\"
128+
")
129+
124130
test_big_endian(WORDS_BIGENDIAN)
125131

126132
file(APPEND ${AUTOCONFIG_SRC} "

0 commit comments

Comments
 (0)