diff options
| author | Martin Hořeňovský | 2022-05-17 22:12:41 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-05-17 22:12:44 +0200 |
| commit | abb669d4fdaeb08ec7e087541d32e7130bc775ef (patch) | |
| tree | 9eb2fac18f26f036c32a12c91dde706c4ba4038c | |
| parent | dcafc605f3232f5109e3f86ac8d8281e6ed611d2 (diff) | |
| download | catch3-abb669d4fdaeb08ec7e087541d32e7130bc775ef.tar.gz | |
Extend project call for Catch2
This provides some extra metadata for CPack and related tools.
| -rw-r--r-- | CMakeLists.txt | 8 | ||||
| -rw-r--r-- | tools/scripts/releaseCommon.py | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 28ab1c8e..01024e5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,13 @@ if(CMAKE_VERSION VERSION_GREATER 3.8) endif() -project(Catch2 LANGUAGES CXX VERSION 3.0.0) +project(Catch2 + VERSION 3.0.0 # CML version placeholder, don't delete + LANGUAGES CXX + HOMEPAGE_URL "https://github.com/catchorg/Catch2" + DESCRIPTION "A modern, C++-native, unit test framework." +) + # Provide path for scripts. We first add path to the scripts we don't use, # but projects including us might, and set the path up to parent scope. diff --git a/tools/scripts/releaseCommon.py b/tools/scripts/releaseCommon.py index b092712b..20ef1b0c 100644 --- a/tools/scripts/releaseCommon.py +++ b/tools/scripts/releaseCommon.py @@ -82,8 +82,8 @@ class Version: def updateCmakeFile(version): with open(cmakePath, 'rb') as file: lines = file.readlines() - replacementRegex = re.compile(b'project\\(Catch2 LANGUAGES CXX VERSION \\d+\\.\\d+\\.\\d+\\)') - replacement = 'project(Catch2 LANGUAGES CXX VERSION {0})'.format(version.getVersionString()).encode('ascii') + replacementRegex = re.compile(b'''VERSION (\\d+.\\d+.\\d+) # CML version placeholder, don't delete''') + replacement = '''VERSION {0} # CML version placeholder, don't delete'''.format(version.getVersionString()).encode('ascii') with open(cmakePath, 'wb') as file: for line in lines: file.write(replacementRegex.sub(replacement, line)) |