summarylogtreecommitdiffstats
path: root/cmake.patch
blob: 9afd461a6cac1c55941ba3565e0b2463b45dc8ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
commit dabb3237db4112abde0020cbb0b6a80f477e6aee
Author: Keeyou <keeyou-cn@outlook.com>
Date:   Sat May 11 10:55:46 2024 +0800

    gperftools: set benchmark to off (trivial)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a36248d9..98942410 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2411,12 +2411,12 @@ if (USE_SYSTEM_TCMALLOC AND USE_TCMALLOC)
 elseif (USE_TCMALLOC)
   message(STATUS "Compiling with bundled tcmalloc support")
 
-  set(GPERFTOOLS_BUILD_DEBUGALLOC OFF)
-  set(gperftools_build_minimal ON)
-  set(gperftools_build_benchmark OFF)
-  set(GPERFTOOLS_BUILD_STATIC ON)
-  set(GPERFTOOLS_ENABLE_INSTALL OFF)
-  set(GPERFTOOLS_BUILD_TESTING OFF)
+  set(GPERFTOOLS_BUILD_DEBUGALLOC OFF CACHE BOOL "")
+  set(gperftools_build_minimal ON CACHE BOOL "")
+  set(gperftools_build_benchmark OFF CACHE BOOL "")
+  set(GPERFTOOLS_BUILD_STATIC ON CACHE BOOL "")
+  set(GPERFTOOLS_ENABLE_INSTALL OFF CACHE BOOL "")
+  set(GPERFTOOLS_BUILD_TESTING OFF CACHE BOOL "")
   add_subdirectory(third_party/gperftools)
 
   set_target_properties(tcmalloc_minimal PROPERTIES EXCLUDE_FROM_ALL TRUE)