Fix memory leak linux (use tcmalloc to compile)

This commit is contained in:
dinhnn 2018-07-13 13:48:57 +07:00
parent 1abda367d6
commit 2ad8dacd43

View File

@ -154,3 +154,6 @@ IF((APPLE AND BUILD_AS_BUNDLE) OR WIN32)
" COMPONENT runtime) " COMPONENT runtime)
ENDIF((APPLE AND BUILD_AS_BUNDLE) OR WIN32) ENDIF((APPLE AND BUILD_AS_BUNDLE) OR WIN32)
if(UNIX AND NOT APPLE)
set (CMAKE_CXX_FLAGS "-ltcmalloc")
ENDIF()