kelseymh / G4CMP

A low energy condensed matter physics package for Geant4
GNU General Public License v3.0
28 stars 15 forks source link

version number #19

Open johnson329llnl opened 7 months ago

johnson329llnl commented 7 months ago

in the readme file there is an instruction, "Use the -DG4CMP_VERSION=X.Y.Z option for this purpose.". Maybe I am not seeing the trees in the forest, but where is the version number?

Sincerely, Micah

kelseymh commented 6 months ago

Apologies for the delay responding; I'm still getting used to checking for GitHub issues, rather than our interal JIRA tickets.

The version number is the tag applied to the master/main branch (for example, right now the tag string is g4cmp-V08-05-00). When you build G4CMP from a Git clone, it uses git describe to get the version number and stash it in a .g4cmp-version, which is then read back by G4CMPConfigManager::setVersion().

If you got G4CMP from a tarball, it won't have the .git directory needed for git describe to work; if you want to set the version string in your build under those circumstances, the -DG4CMP_VERSION option is available.