Use shared jemalloc always if available

This commit is contained in:
Uwe L. Korn committed 2017-06-21 17:27:17 +02:00
1 parent 2205586f3b
commit 2c75f56dba
1 file changed
+1 -1
+1 -1
View File
@@ -952,7 +952,7 @@ if (ARROW_JEMALLOC)
# link it in the static requirements. In contrast to other libraries we try in
# most cases to use the system provided version of jemalloc to better align with
# other potential users of jemalloc.
if (JEMALLOC_STATIC_LIB)
if (JEMALLOC_STATIC_LIB AND NOT ARROW_JEMALLOC_USE_SHARED)
set(ARROW_JEMALLOC_STATIC_LINK_LIBS jemalloc_static)
else()
set(ARROW_JEMALLOC_STATIC_LINK_LIBS jemalloc_shared)