[chore](cmake) Refactor be CMakeLists option (#22499)
Signed-off-by: Jack Drogon <jack.xsuperman@gmail.com>
This commit is contained in:
@ -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'")
|
||||
|
||||
Reference in New Issue
Block a user