From: Daniel Gryniewicz Date: Tue, 29 Sep 2015 14:41:13 +0000 (-0400) Subject: CMake - Fix perftools checks X-Git-Tag: v10.0.0~106^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ff6223f8d3294f25e306576244203284bc7e1495;p=ceph.git CMake - Fix perftools checks Signed-off-by: Daniel Gryniewicz --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6d875984cdf..62c335f277d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -319,13 +319,13 @@ set(common_mountcephfs_files add_library(common_mountcephfs_objs OBJECT ${common_mountcephfs_files}) -if(${WITH_GPERFTOOLS}) +if(${HAVE_GPERFTOOLS}) list(APPEND libcommon_files perfglue/cpu_profiler.cc) else() list(APPEND libcommon_files perfglue/disabled_stubs.cc) -endif(${WITH_GPERFTOOLS}) +endif(${HAVE_GPERFTOOLS}) if(${ENABLE_SHARED}) list(APPEND libcommon_files @@ -341,9 +341,9 @@ set_source_files_properties(${CMAKE_SOURCE_DIR}/src/ceph_ver.c ${CMAKE_SOURCE_DIR}/src/test/encoding/ceph_dencoder.cc APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/src/include/ceph_ver.h) -if(${WITH_GPERFTOOLS}) +if(${HAVE_GPERFTOOLS}) target_link_libraries(common profiler) -endif(${WITH_GPERFTOOLS}) +endif(${HAVE_GPERFTOOLS}) add_library(common_utf8 STATIC common/utf8.c)