Skip to content
Snippets Groups Projects
Commit e1539a12 authored by calrama's avatar calrama
Browse files

Update use of (git) source version

parent b1d3f834
No related branches found
No related tags found
No related merge requests found
Pipeline #26758 failed
cmake_minimum_required(VERSION 3.13)
file(READ VERSION PROJECT_VERSION)
exec_program("git" ${CMAKE_CURRENT_SOURCE_DIR} ARGS "describe --dirty --always --exclude '*'" OUTPUT_VARIABLE SOURCE_VERSION)
project(robofish-behavior_loader
VERSION ${PROJECT_VERSION}
LANGUAGES CXX)
LANGUAGES CXX
)
include(GNUInstallDirs)
......@@ -32,8 +33,8 @@ include(CMakePackageConfigHelpers)
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY AnyNewerVersion
VERSION ${SOURCE_VERSION}
COMPATIBILITY ExactVersion
)
configure_package_config_file(
......@@ -50,5 +51,6 @@ install(
)
set(CPACK_GENERATOR "TXZ")
set(CPACK_PACKAGE_VERSION "${SOURCE_VERSION}")
include(CPack)
0.2.0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment