forked from MiKTeX/miktex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
miktex-version.cmake
59 lines (51 loc) · 1.75 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
49
50
51
52
53
54
55
56
57
58
59
## miktex-version.cmake: define the MiKTeX version number
##
## Copyright (C) 2006-2017 Christian Schenk
##
## This file is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This file is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this file; if not, write to the Free Software Foundation,
## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
## major version number
set(MIKTEX_MAJOR_VERSION 2)
## minor version number
set(MIKTEX_MINOR_VERSION 9)
## milestone; measured in: days since January 1, 2000
set(MIKTEX_J2000_VERSION 6350)
## the version of the binary package
set(MIKTEX_PACKAGE_REVISION 1)
## cached date
set(MIKTEX_YEAR_VERSION ${MIKTEX_CACHED_YEAR})
## the release number; only meaningful for rc/beta builds
set(MIKTEX_RELEASE_NUM 1)
## the release state; one of:
## 0 (stable)
## 1 (next)
## 4 (debug)
set(MIKTEX_RELEASE_STATE
0
CACHE STRING
"The MiKTeX release state."
)
## sanity check
if(MIKTEX_RELEASE_STATE EQUAL 0)
elseif(MIKTEX_RELEASE_STATE EQUAL 1)
elseif(MIKTEX_RELEASE_STATE EQUAL 4)
else()
message("${MIKTEX_RELEASE_STATE} is an unknown release state.")
message("Falling back to release state 4 (debug).")
set(MIKTEX_RELEASE_STATE
4
CACHE STRING
"MiKTeX release state; one of 0 (stable), 1 (next), 4 (debug)."
FORCE)
endif()