]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: should use the value of GPERFTOOLS_LIBRARIES as REQUIRED_VARS
authorKefu Chai <kchai@redhat.com>
Tue, 31 Oct 2017 08:58:02 +0000 (16:58 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 31 Oct 2017 08:58:04 +0000 (16:58 +0800)
commit599a9ef3ca705f33fd240b8a02c00946497ad115
tree971e4658c722290738fdcac53005886042653ebc
parentc41da89c72f039c1655e93463719e7c7764880ff
cmake: should use the value of GPERFTOOLS_LIBRARIES as REQUIRED_VARS

otherwise it's always true, even if the libaries are not found. also
the cmake output will be wrong without this change:

without this change, it is:

-- Found gperftools: GPERFTOOLS_TCMALLOC_LIBRARY;GPERFTOOLS_TCMALLOC_MINIMAL_LIBRARY;GPERFTOOLS_PROFILER_LIBRARY (found version "2.5.93")

with this change, it would be:

-- Found gperftools: /tmp/gperf/lib/libtcmalloc.so (found version "2.5.93")

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