3 ################################
5 set(HOOMD_VERSION_MAJOR "0")
6 set(HOOMD_VERSION_MINOR "10")
7 set(HOOMD_VERSION_PATCH "1")
8 set(HOOMD_VERSION "${HOOMD_VERSION_MAJOR}.${HOOMD_VERSION_MINOR}.${HOOMD_VERSION_PATCH}")
10 # users may not have git installed, or this may be a tarball build - set a dummy version if that is the case
11 include(GetGitRevisionDescription)
12 git_describe(HOOMD_GIT_VERSION)
13 if (HOOMD_GIT_VERSION)
14 set(HOOMD_VERSION_LONG "${HOOMD_GIT_VERSION}")
15 else (HOOMD_GIT_VERSION)
16 set(HOOMD_VERSION_LONG "${HOOMD_VERSION}-unknown")
17 endif (HOOMD_GIT_VERSION)
19 get_git_head_revision(GIT_REFSPEC GIT_SHA1)
21 set(HOOMD_GIT_REFSPEC "${GIT_REFSPEC}")
23 set(HOOMD_GIT_REFSPEC "unknown")
27 set(HOOMD_GIT_SHA1 "${GIT_SHA1}")
29 set(HOOMD_GIT_SHA1 "unknown")