2017-05-04 11:33:18 +02:00
|
|
|
--- cmake/jemalloc.cmake.orig 2017-04-30 11:09:29 UTC
|
|
|
|
+++ cmake/jemalloc.cmake
|
|
|
|
@@ -22,11 +22,11 @@ MACRO (CHECK_JEMALLOC)
|
2014-11-22 19:46:05 +01:00
|
|
|
SET(libname jemalloc)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
- CHECK_LIBRARY_EXISTS(${libname} malloc_stats_print "" HAVE_JEMALLOC)
|
2013-10-01 00:32:28 +02:00
|
|
|
+ CHECK_LIBRARY_EXISTS(c malloc_stats_print "" HAVE_JEMALLOC)
|
2014-11-22 19:46:05 +01:00
|
|
|
SET(CMAKE_REQUIRED_LIBRARIES)
|
|
|
|
|
2013-10-01 00:32:28 +02:00
|
|
|
IF (HAVE_JEMALLOC)
|
2014-11-22 19:46:05 +01:00
|
|
|
- SET(LIBJEMALLOC ${libname})
|
2013-10-01 00:32:28 +02:00
|
|
|
+ SET(LIBJEMALLOC c)
|
2014-11-22 19:46:05 +01:00
|
|
|
ELSEIF (NOT WITH_JEMALLOC STREQUAL "auto")
|
|
|
|
MESSAGE(FATAL_ERROR "${libname} is not found")
|
|
|
|
ENDIF()
|