File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,15 @@ message(STATUS "Build id '${CADABRA_VERSION_BUILD}' dated ${CADABRA_VERSION_DATE
7474message (STATUS "Build mode is set to '${CMAKE_BUILD_TYPE} '" )
7575message (STATUS "Architecture is '${CMAKE_SYSTEM_PROCESSOR} }'" )
7676
77+ # Store the version number in a build/VERSION file (so that e.g. github
78+ # actions can pick it up).
79+ if (NOT "${CADABRA_VERSION_TWEAK} " STREQUAL "0" )
80+ file (WRITE build /VERSION "${CADABRA_VERSION_MAJOR} .${CADABRA_VERSION_MINOR} .${CADABRA_VERSION_PATCH} .${CADABRA_VERSION_TWEAK} " )
81+ else ()
82+ file (WRITE build /VERSION "${CADABRA_VERSION_MAJOR} .${CADABRA_VERSION_MINOR} .${CADABRA_VERSION_PATCH} " )
83+ endif ()
84+
85+
7786# Notify about install directory
7887if ("${CMAKE_INSTALL_PREFIX} " STREQUAL "" )
7988 message (STATUS "Install directory not set" )
You can’t perform that action at this time.
0 commit comments