Enable -march=native in OS X clang builds
[hoomd-blue.git] / CMake_version_options.cmake
blob7525f3ecb092fa0c9fb41f27d9977bc11b6b8de1
1 # Maintainer: joaander
3 ################################
4 ## Version information
5 set(HOOMD_VERSION_MAJOR "1")
6 set(HOOMD_VERSION_MINOR "0")
7 set(HOOMD_VERSION_PATCH "0")
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)