Enable parallel tests.
[hoomd-blue.git] / CMake_version_options.cmake
blobb93820f9abc05c92fe524c890eff904e15a7158a
1 # Maintainer: joaander
3 ################################
4 ## Version information
5 set(HOOMD_VERSION_MAJOR "1")
6 set(HOOMD_VERSION_MINOR "0")
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)
20 if (GIT_REFSPEC)
21     set(HOOMD_GIT_REFSPEC "${GIT_REFSPEC}")
22 else (GIT_REFSPEC)
23     set(HOOMD_GIT_REFSPEC "unknown")
24 endif (GIT_REFSPEC)
26 if (GIT_SHA1)
27     set(HOOMD_GIT_SHA1 "${GIT_SHA1}")
28 else (GIT_SHA1)
29     set(HOOMD_GIT_SHA1 "unknown")
30 endif (GIT_SHA1)