diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-07-11 12:47:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-11 12:47:03 +0800 |
| commit | 6ed7e7f60b3e60be2589b2aa7e812f7315493db5 (patch) | |
| tree | 3ae231f8a750dd9502673385f85bbb9d629fac46 /CMakeLists.txt | |
| parent | 49c56d742be12a8477eb7d6e2ffb637a6a153482 (diff) | |
Cope with failed version parsing (#4609)
* Cope with failed version parsing
* Better version parsing
* populate slang-tag-version with cmake
* Neaten cmake
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 70e204e7e..f16f31fbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,12 +4,13 @@ cmake_minimum_required(VERSION 3.25) # from git describe list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") include(GitVersion) -get_git_version(SLANG_VERSION "${CMAKE_CURRENT_LIST_DIR}") +get_git_version(SLANG_VERSION_NUMERIC SLANG_VERSION_FULL "${CMAKE_CURRENT_LIST_DIR}") # # Our project # -project(slang VERSION "${SLANG_VERSION}" LANGUAGES) +project(slang VERSION "${SLANG_VERSION_NUMERIC}" LANGUAGES) +set(PROJECT_VERSION "${SLANG_VERSION_FULL}") # # Global CMake options |
