so that scylla_build_mode_$<CONFIG> can be referenced when necessary. we using it for referencing build mode in the building system instead of the CMake configuration name. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
21 lines
468 B
CMake
21 lines
468 B
CMake
set(CMAKE_CXX_FLAGS_DEV
|
|
""
|
|
CACHE
|
|
INTERNAL
|
|
"")
|
|
update_cxx_flags(CMAKE_CXX_FLAGS_DEV
|
|
OPTIMIZATION_LEVEL "2")
|
|
|
|
set(scylla_build_mode_Dev "dev")
|
|
set(Seastar_DEFINITIONS_DEV
|
|
SCYLLA_BUILD_MODE=${scylla_build_mode_Dev}
|
|
DEVEL
|
|
SEASTAR_ENABLE_ALLOC_FAILURE_INJECTION
|
|
SCYLLA_ENABLE_ERROR_INJECTION)
|
|
foreach(definition ${Seastar_DEFINITIONS_DEV})
|
|
add_compile_definitions(
|
|
$<$<CONFIG:Dev>:${definition}>)
|
|
endforeach()
|
|
|
|
maybe_limit_stack_usage_in_KB(21 Dev)
|