From ff6223f8d3294f25e306576244203284bc7e1495 Mon Sep 17 00:00:00 2001 From: Daniel Gryniewicz Date: Tue, 29 Sep 2015 10:41:13 -0400 Subject: [PATCH] CMake - Fix perftools checks Signed-off-by: Daniel Gryniewicz --- src/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.47.3