Skip to content
Snippets Groups Projects
Commit 7ddc7f4b authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

cmake : add an option to use libtcmlloc (a faster malloc implementation

than glibc)
parent 6b929c5d
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,7 @@ opt(SGEOM "Enable SGEOM interface to OCC (experimental)" OFF) ...@@ -83,6 +83,7 @@ opt(SGEOM "Enable SGEOM interface to OCC (experimental)" OFF)
opt(SLEPC "Enable SLEPc eigensolvers (required for conformal compounds)" ${DEFAULT}) opt(SLEPC "Enable SLEPc eigensolvers (required for conformal compounds)" ${DEFAULT})
opt(SOLVER "Enable built-in finite element solvers (required for compounds)" ${DEFAULT}) opt(SOLVER "Enable built-in finite element solvers (required for compounds)" ${DEFAULT})
opt(TAUCS "Enable Taucs linear solver (alternative to PETSc)" ${DEFAULT}) opt(TAUCS "Enable Taucs linear solver (alternative to PETSc)" ${DEFAULT})
opt(TCMALLOC "Enable libtcmalloc, a fast malloc implementation but that does not release memory" OFF)
opt(TETGEN "Enable Tetgen 3D initial mesh generator" ${DEFAULT}) opt(TETGEN "Enable Tetgen 3D initial mesh generator" ${DEFAULT})
opt(TETGEN_OLD "Enable older version of Tetgen" OFF) opt(TETGEN_OLD "Enable older version of Tetgen" OFF)
opt(VORO3D "Enable Voro3D (for hex meshing, experimental)" ${DEFAULT}) opt(VORO3D "Enable Voro3D (for hex meshing, experimental)" ${DEFAULT})
...@@ -389,6 +390,14 @@ if(ENABLE_BLAS_LAPACK) ...@@ -389,6 +390,14 @@ if(ENABLE_BLAS_LAPACK)
endif(BLAS_LAPACK_LIBRARIES) endif(BLAS_LAPACK_LIBRARIES)
endif(ENABLE_BLAS_LAPACK) endif(ENABLE_BLAS_LAPACK)
if(ENABLE_TCMALLOC)
find_library(TCMALLOC tcmalloc)
if(TCMALLOC)
set_config_option(HAVE_TCMALLOC "TCMalloc")
list(APPEND EXTERNAL_LIBRARIES ${TCMALLOC})
endif(TCMALLOC)
endif(ENABLE_TCMALLOC)
add_subdirectory(Common) add_subdirectory(Common)
add_subdirectory(Numeric) add_subdirectory(Numeric)
add_subdirectory(Geo) add_subdirectory(Geo)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment