@@ -4,14 +4,15 @@ project(concord-bft VERSION 0.1.0.0 LANGUAGES CXX)
44set (CMAKE_CXX_STANDARD 17)
55set (CMAKE_CXX_STANDARD_REQUIRED ON )
66set (CMAKE_CXX_EXTENSIONS OFF )
7- set (SLEEP_FOR_DBG FALSE )
7+
88# targets with generic names like "format" may already exist in an imported libs
99cmake_policy (SET CMP0002 OLD )
1010set (ALLOW_DUPLICATE_CUSTOM_TARGETS TRUE )
11+
1112set (MIN_BOOST_VERSION 1.80)
1213set (YAML_CPP_VERSION 0.7.0)
1314
14- # Default to debug builds
15+ # Defaults to debug builds
1516# Release builds can be enabled by running cmake with -DCMAKE_BUILD_TYPE=Release
1617if (NOT CMAKE_BUILD_TYPE )
1718 set (CMAKE_BUILD_TYPE "Debug" CACHE STRING "Enable debug or release builds" FORCE )
@@ -21,10 +22,7 @@ option(USE_LOG4CPP "Enable LOG4CPP" ON)
2122option (RUN_APOLLO_TESTS "Enable Apollo tests run" ON )
2223option (KEEP_APOLLO_LOGS "Retains logs from replicas in separate folder for each test in build/tests/apollo/logs" ON )
2324option (TXN_SIGNING_ENABLED "Enable External concord client transcattion signing" ON )
24- option (LEAKCHECK "Enable Address and Leak Sanitizers" OFF )
25- option (HEAPTRACK "Enable Heaptrack - a heap memory profiler for Linux" OFF )
26- option (THREADCHECK "Enable Thread Sanitizer" OFF )
27- option (UNDEFINED_BEHAVIOR_CHECK "Enable Undefined Behavior Sanitizer" OFF )
25+
2826# Rocksdb is required for storage now. Consider removing this flag.
2927option (BUILD_ROCKSDB_STORAGE "Enable building of RocksDB storage library" ON )
3028option (USE_S3_OBJECT_STORE "Enable S3 Object Store" ON )
@@ -45,20 +43,14 @@ if((USE_OPENSSL) AND NOT BUILD_THIRDPARTY)
4543 set (OPENSSL_ROOT_DIR /usr/local/ssl) # not to confuse with system ssl libs
4644endif ()
4745
48- if (SLEEP_FOR_DBG)
49- add_definitions (-DSLEEP_DBG )
50- endif ()
51-
5246# include compiler specific options
5347include (cmake/${CMAKE_CXX_COMPILER_ID}.cmake )
5448include (cmake/cppcheck.cmake )
5549
5650list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR} /cmake" )
5751include (cmake/grpc_utils.cmake )
5852
59- if (BUILD_TESTING)
60- include (CTest )
61- endif ()
53+ include (CTest )
6254
6355if (USE_S3_OBJECT_STORE)
6456 add_compile_definitions (USE_S3_OBJECT_STORE=1 )
0 commit comments