Unverified Commit e7481180 authored by René Fritze's avatar René Fritze
Browse files

[cmake] move version setting to module-self macros

parent 7abf5d67
Pipeline #104506 failed with stages
in 100 minutes and 11 seconds
......@@ -43,9 +43,6 @@ include(DuneMacros)
# start a dune project with information from dune.module
dune_project()
# (re-)set version info from git if available
include(DuneXtVersionHelper)
dune_xt_module_version_from_git(DUNE_XT)
# dune-xt cmake includes
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
......
......@@ -19,6 +19,10 @@ include(XtCompilerSupport)
include(XtTooling)
include(Hints)
# (re-)set version info from git if available
include(DuneXtVersionHelper)
dune_xt_module_version_from_git(DUNE_XT)
# library checks #########################################################################
find_package(PkgConfig)
......
......@@ -39,8 +39,8 @@ macro(dune_xt_module_version_from_git TARGET_MODULE)
set(ProjectVersionRevision "${DUNE_VERSION_REVISION}")
# need to re-run template insertion
configure_file(
${CONFIG_VERSION_FILE}
${PROJECT_BINARY_DIR}/${ProjectName}-config-version.cmake @ONLY)
# configure_file(
# ${CONFIG_VERSION_FILE}
# ${PROJECT_BINARY_DIR}/${ProjectName}-config-version.cmake @ONLY)
endmacro(dune_xt_module_version_from_git)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment