]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
CMake - Fix perftools checks 6108/head
authorDaniel Gryniewicz <dang@redhat.com>
Tue, 29 Sep 2015 14:41:13 +0000 (10:41 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Mon, 5 Oct 2015 13:28:40 +0000 (09:28 -0400)
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/CMakeLists.txt

index 6d875984cdf0e6b04681d6c46a37bcfe47d87f0b..62c335f277d863799cf6439446072497468e6301 100644 (file)
@@ -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)