Skip to content

Commit f8cdbb0

Browse files
Add explanation for why we set version based on config.inc in CMake
1 parent c724249 commit f8cdbb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.2)
22

33

44
# Grab the current CBMC version from config.inc
5+
# We do this so we have a matching cbmc version between the Makefile build and
6+
# the CMake build. This version info is useful for things like generating
7+
# packages (which usually need to contain version info in their metadata and
8+
# filenames)
59
file(
610
STRINGS src/config.inc CBMC_VERSION
711
REGEX "CBMC_VERSION = (.*)")

0 commit comments

Comments
 (0)