Commit 5f9b2582 authored by Anton Sergeev's avatar Anton Sergeev

Make CMake option for perf-tools

This allow disable making perf-tools in Release build type
Signed-off-by: 's avatarAnton Sergeev <Anton.Sergeev@elecard.ru>
parent 3699242c
......@@ -648,6 +648,12 @@ set(perf-tools local_lat
inproc_thr)
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") # Why?
option(WITH_PERF_TOOL "Build with perf-tools" ON)
else()
option(WITH_PERF_TOOL "Build with perf-tools" OFF)
endif()
if(WITH_PERF_TOOL)
foreach(perf-tool ${perf-tools})
add_executable(${perf-tool} perf/${perf-tool}.cpp)
target_link_libraries(${perf-tool} libzmq)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment