File: gperftools.cmake

package info (click to toggle)
madness 0.10.1%2Bgit20200818.eee5fd9f-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 34,948 kB
  • sloc: cpp: 280,841; ansic: 12,626; python: 4,961; fortran: 4,245; xml: 1,053; makefile: 716; sh: 276; perl: 244; yacc: 227; lex: 188; asm: 141; csh: 55
file content (17 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if(ENABLE_GPERFTOOLS OR ENABLE_TCMALLOC_MINIMAL)
  
  if(ENABLE_GPERFTOOLS)
    find_package(Gperftools COMPONENTS tcmalloc OPTIONAL_COMPONENTS profiler)
  else()
    find_package(Gperftools REQUIRED COMPONENTS tcmalloc_minimal)
  endif()

  # Set the config.h variables
  if(GPERFTOOLS_FOUND AND ENABLE_TCMALLOC_MINIMAL)
    set(MADNESS_HAS_GOOGLE_PERF_MINIMAL 1)
  endif()
  if(LIBUNWIND_FOUND)
    set(MADNESS_HAS_LIBUNWIND 1)
  endif()
      
endif()