]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: fix gperftools version detection
authorKefu Chai <kchai@redhat.com>
Fri, 13 Oct 2017 07:10:29 +0000 (15:10 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Oct 2017 07:11:09 +0000 (15:11 +0800)
commitcaae3c4757389fd50dba78d3be86f6775b1f9ce0
tree733a3dace5ee618bd9baaad57ea31c8e2dad17c1
parent8717eac498c6406500eea8b51e5f5708ce97a2b6
cmake: fix gperftools version detection

there is chance that its "patch" version is empty. in that case, do not
include it in its version string. otherwise, we will have something
like:

Found gperftools:
GPERFTOOLS_TCMALLOC_LIBRARY;GPERFTOOLS_TCMALLOC_MINIMAL_LIBRARY;GPERFTOOLS_PROFILER_LIBRARY
(found version "2.4.#define TC_VERSION_PATCH  """)

when running cmake

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/Findgperftools.cmake