-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathmiktex-version.cmake
48 lines (40 loc) · 1.23 KB
/
miktex-version.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
## miktex-version.cmake
##
## Copyright (C) 2006-2024 Christian Schenk
##
## This file is free software; the copyright holder gives
## unlimited permission to copy and/or distribute it, with or
## without modifications, as long as this notice is preserved.
## date based version
set(MIKTEX_YEAR_VERSION 2024)
set(MIKTEX_MONTH_VERSION 12)
set(MIKTEX_DAY_VERSION 23)
set(MIKTEX_DAY_VERSION_IS_PATCH_VERSION FALSE)
## internal major/minor/patch version
math(EXPR
MIKTEX_MAJOR_VERSION
"${MIKTEX_YEAR_VERSION} - 2000"
)
set(MIKTEX_MINOR_VERSION ${MIKTEX_MONTH_VERSION})
if(MIKTEX_DAY_VERSION_IS_PATCH_VERSION)
set(MIKTEX_PATCH_VERSION ${MIKTEX_DAY_VERSION})
else()
set(MIKTEX_PATCH_VERSION 0)
endif()
## old (pre Jun 2020) version
set(MIKTEX_LEGACY_MAJOR_VERSION 2)
set(MIKTEX_LEGACY_MINOR_VERSION 9)
## major/minor version for package database files
set(MIKTEX_PACKAGES_MAJOR_VERSION 2)
set(MIKTEX_PACKAGES_MINOR_VERSION 9)
if(WIN32 AND NOT UNIX)
## major/minor version for Windows related COMponents files and directories
set(MIKTEX_COM_MAJOR_VERSION 2)
set(MIKTEX_COM_MINOR_VERSION 9)
endif()
## the version of the MiKTeX binary package
set(MIKTEX_PACKAGE_REVISION
1
CACHE STRING
"The MiKTeX package revision."
)