diff --git a/CMakeLists.txt b/CMakeLists.txt index 5247f383..1a3877fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)