Skip to content

Commit e968842

Browse files
committed
Added support for TCMalloc on CMakeFile
1 parent b0b5466 commit e968842

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ if (NOT MSVC)
2727
endif(CODE_COVERAGE)
2828
endif(NOT MSVC)
2929

30+
option(TCMALLOC "Enable TCMalloc Optimization" OFF)
31+
if(TCMALLOC)
32+
link_libraries(
33+
"-ltcmalloc"
34+
)
35+
message( "TCMalloc Enabled" )
36+
endif(TCMALLOC)
37+
3038
option(TEST "Enable Test" OFF)
3139
if(TEST)
3240
include(${CPM_DOWNLOAD_LOCATION})

0 commit comments

Comments
 (0)