Skip to content

Commit de5f29c

Browse files
authored
Merge pull request #7577 from tautschnig/cleanup/cmake-CBMC_VERSION
CMake: clean up setting CMAKE_VERSION
2 parents 6b73222 + 12fdeb1 commit de5f29c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

jbmc/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
project(JBMC)
1+
project(JBMC VERSION ${CBMC_VERSION})
22

33
# Set the public include locations for a target.
44
macro(generic_includes name)

src/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
file(STRINGS
2-
"${CMAKE_CURRENT_SOURCE_DIR}/config.inc"
3-
cbmc_version_string
4-
REGEX "CBMC_VERSION.*")
5-
6-
string(REGEX REPLACE "CBMC_VERSION = (.*)" "\\1" CBMC_VERSION "${cbmc_version_string}")
7-
unset(cbmc_version_string)
8-
91
project(CBMC VERSION ${CBMC_VERSION})
102

113
find_package(BISON REQUIRED)

0 commit comments

Comments
 (0)