Skip to content

Commit 8aa6779

Browse files
committed
build: remove generation of the version
We had drifted in the version management. Rather than risking the divergence between CMake and SPM in the future, prefer to just have a single manually maintained version of the version header.
1 parent 6f64876 commit 8aa6779

File tree

4 files changed

+2
-17
lines changed

4 files changed

+2
-17
lines changed

Package.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ let package = Package(
4242
"scanners.re",
4343
"libcmark-gfm.pc.in",
4444
"CMakeLists.txt",
45-
"cmark-gfm_version.h.in",
4645
],
4746
cSettings: cSettings
4847
),

src/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
set(PROJECT_VERSION_MAJOR 0)
2-
set(PROJECT_VERSION_MINOR 29)
3-
set(PROJECT_VERSION_PATCH 0)
4-
set(PROJECT_VERSION_GFM 13)
5-
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmark-gfm_version.h.in
6-
${CMAKE_CURRENT_BINARY_DIR}/cmark-gfm_version.h)
7-
81
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libcmark-gfm.pc.in
92
${CMAKE_CURRENT_BINARY_DIR}/libcmark-gfm.pc @ONLY)
103

src/cmark-gfm_version.h.in

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/include/cmark-gfm_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef CMARK_GFM_VERSION_H
22
#define CMARK_GFM_VERSION_H
33

4-
#define CMARK_GFM_VERSION ((0 << 24) | (29 << 16) | (0 << 8) | 0)
5-
#define CMARK_GFM_VERSION_STRING "0.29.0.gfm.0"
4+
#define CMARK_GFM_VERSION ((0 << 24) | (29 << 16) | (0 << 8) | 13)
5+
#define CMARK_GFM_VERSION_STRING "0.29.0.gfm.13"
66

77
#endif

0 commit comments

Comments
 (0)