diff --git a/receiver/CMakeLists.txt b/receiver/CMakeLists.txt index 26a87f83f7a73ce5ede35398016697ff0f7a520d..4f27a3e773769136461ed48b0f01239c4fccbc73 100644 --- a/receiver/CMakeLists.txt +++ b/receiver/CMakeLists.txt @@ -61,6 +61,10 @@ set(MONITORING_FILES src/monitoring/receiver_monitoring_client_noop.cpp ) +if (CMAKE_BUILD_TYPE STREQUAL "Release") + set(CMAKE_BUILD_TYPE RelWithDebInfo) +endif() + if (ENABLE_NEW_RECEIVER_MONITORING) add_definitions(-DNEW_RECEIVER_MONITORING_ENABLED) find_package(gRPC REQUIRED)