mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
Add WITH_BENCHMARKS to decide whether to compile benchmarks
Signed-off-by: Contrary <liang.jingchao@zte.com.cn>
This commit is contained in:
parent
2aa9564035
commit
db5df83eb9
@ -33,6 +33,7 @@ option(SAVE_ALLOCATE_SIZE "Use more memory to save allocate size" OFF)
|
|||||||
option(ENABLE_FUSE_APPLICATION "" ON)
|
option(ENABLE_FUSE_APPLICATION "" ON)
|
||||||
|
|
||||||
option(WITH_TESTS "Enable the build of tests" OFF)
|
option(WITH_TESTS "Enable the build of tests" OFF)
|
||||||
|
option(WITH_BENCHMARKS "Enable the build of benchmarks" OFF)
|
||||||
|
|
||||||
if (DEFINED SANITIZER AND SANITIZER)
|
if (DEFINED SANITIZER AND SANITIZER)
|
||||||
set(OVERRIDE_CXX_NEW_DELETE OFF)
|
set(OVERRIDE_CXX_NEW_DELETE OFF)
|
||||||
@ -208,4 +209,6 @@ add_subdirectory(src)
|
|||||||
if(WITH_TESTS)
|
if(WITH_TESTS)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
if(WITH_BENCHMARKS)
|
||||||
add_subdirectory(benchmarks)
|
add_subdirectory(benchmarks)
|
||||||
|
endif()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user