]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: Add ENABLE_GIT_VERSION to avoid rebuilding 7171/head
authorKefu Chai <kchai@redhat.com>
Mon, 11 Jan 2016 04:33:13 +0000 (12:33 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 11 Jan 2016 05:22:45 +0000 (13:22 +0800)
commite6f2e8dd4f2083c15187c459625a3dc23a3688b4
treecf1d1543155333514fcded35a97e20822ce2de54
parent0c5e0c2a252e6ead4f772ebc0ff91f8e19b91be9
cmake: Add ENABLE_GIT_VERSION to avoid rebuilding

it is a pain to see something like
"expected plugin ./ec_plugins/libec_jerasure.so version
 v10.0.1-1239-g73c5763 but it claims to be v10.0.1-1241-gdb83f12
 instead" from time to time. so this is a cmake port of b227426.
the option ENABLE_GIT_VERSION is ON by default. if it is set OFF,
ceph_ver.h will not be recreated.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt