feat(build): do not display WARNING message when tcmalloc is not found

This commit is contained in:
Leonardo de Moura 2014-09-17 15:22:03 -07:00
parent 26918022d8
commit 19148af7ae

View file

@ -143,7 +143,7 @@ if("${JEMALLOC}" MATCHES "ON")
message(STATUS "Using jemalloc.") message(STATUS "Using jemalloc.")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D HAS_JEMALLOC") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D HAS_JEMALLOC")
else() else()
message(WARNING "FAILED to find jemalloc, will try tcmalloc and then standard malloc.") message(STATUS "Failed to find jemalloc, will try tcmalloc and then standard malloc.")
endif() endif()
endif() endif()
@ -156,7 +156,7 @@ if(NOT "${JEMALLOC_FOUND}")
message(STATUS "Using tcmalloc.") message(STATUS "Using tcmalloc.")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D HAS_TCMALLOC") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D HAS_TCMALLOC")
else() else()
message(WARNING "FAILED to find tcmalloc, using standard malloc.") message(STATUS "Failed to find tcmalloc, using standard malloc.")
endif() endif()
else() else()
message(STATUS "Using standard malloc.") message(STATUS "Using standard malloc.")