Merge pull request #6979 from jamessan/avoid-jemalloc-on-osx

Prefer the static jemalloc library by default on OSX
This commit is contained in:
James McCoy 2017-07-07 15:46:39 -04:00 committed by GitHub
commit 226603a8d8

View File

@ -27,6 +27,9 @@ find_path(JEMALLOC_INCLUDE_DIR jemalloc/jemalloc.h
if(JEMALLOC_USE_STATIC) if(JEMALLOC_USE_STATIC)
list(APPEND JEMALLOC_NAMES list(APPEND JEMALLOC_NAMES
"${CMAKE_STATIC_LIBRARY_PREFIX}jemalloc${CMAKE_STATIC_LIBRARY_SUFFIX}") "${CMAKE_STATIC_LIBRARY_PREFIX}jemalloc${CMAKE_STATIC_LIBRARY_SUFFIX}")
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
list(INSERT JEMALLOC_NAMES 0
"${CMAKE_STATIC_LIBRARY_PREFIX}jemalloc${CMAKE_STATIC_LIBRARY_SUFFIX}")
endif() endif()
list(APPEND JEMALLOC_NAMES jemalloc) list(APPEND JEMALLOC_NAMES jemalloc)