~aleteoryx/muditaos

ref: 97336d9bdb9e98dc811cc1dd6382013e4953a547 muditaos/config/GenVersionHpp.cmake -rw-r--r-- 441 bytes
97336d9b — Radoslaw Wicik [EGD-5460] Fix "can't open port" on CI 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# This script generates the source/version.hpp containing project version
# information. It is meant to be run at build time by running CMake as a target.

list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/config")
include(Version)

configure_file(
    ${SRC_DIR}/source/version.hpp.template
    ${CMAKE_BINARY_DIR}/source/version.hpp
    )

message("GIT_REV: ${GIT_REV}")
message("GIT_TAG: ${GIT_TAG}")
message("Version: ${CMAKE_PROJECT_VERSION}")