diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt index fe4aa132c1..02c0243f41 100644 --- a/be/CMakeLists.txt +++ b/be/CMakeLists.txt @@ -67,18 +67,17 @@ else() endif() # Options -if (NOT OS_MACOSX) - option(GLIBC_COMPATIBILITY "Enable compatibility with older glibc libraries." ON) - option(USE_LIBCPP "Use libc++" OFF) - option(USE_MEM_TRACKER, "Use memory tracker" ON) - option(USE_UNWIND "Use libunwind" ON) -else() - option(GLIBC_COMPATIBILITY "Enable compatibility with older glibc libraries." OFF) - option(USE_LIBCPP "Use libc++" ON) - option(USE_MEM_TRACKER, "Use memory tracker" OFF) - option(USE_UNWIND "Use libunwind" OFF) -endif() +option(GLIBC_COMPATIBILITY "Enable compatibility with older glibc libraries." ON) +option(USE_LIBCPP "Use libc++" OFF) +option(USE_MEM_TRACKER, "Use memory tracker" ON) +option(USE_UNWIND "Use libunwind" ON) option(USE_JEMALLOC "Use jemalloc" ON) +if (OS_MACOSX) + set(GLIBC_COMPATIBILITY OFF) + set(USE_LIBCPP ON) + set(USE_MEM_TRACKER OFF) + set(USE_UNWIND OFF) +endif() if (DISPLAY_BUILD_TIME) set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "time -f 'TimeUsage: real=%es, user=%Us, sys=%Ss'")