Skip to content

Commit

Permalink
Merge pull request #7171 from tchaikov/wip-enable-git-version
Browse files Browse the repository at this point in the history
cmake: Add ENABLE_GIT_VERSION to avoid rebuilding
  • Loading branch information
cbodley committed Jan 11, 2016
2 parents b6e9902 + e6f2e8d commit 6e65447
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/CMakeLists.txt
Expand Up @@ -92,8 +92,14 @@ endif(USE_NSS)

set(GCOV_PREFIX_STRIP 4)

get_git_head_revision(GIT_REFSPEC CEPH_GIT_VER)
git_describe(CEPH_GIT_NICE_VER --always)
option(ENABLE_GIT_VERSION "build Ceph with git version string" ON)
if(${ENABLE_GIT_VERSION})
get_git_head_revision(GIT_REFSPEC CEPH_GIT_VER)
git_describe(CEPH_GIT_NICE_VER --always)
else(${ENABLE_GIT_VERSION})
set(CEPH_GIT_VER "no_version")
set(CEPH_GIT_NICE_VER "Development")
endif(${ENABLE_GIT_VERSION})

# Python stuff
find_package(PythonInterp 2 QUIET)
Expand Down

0 comments on commit 6e65447

Please sign in to comment.