From 5f9b2582957c1f46453e39b00afa21ae6822c936 Mon Sep 17 00:00:00 2001 From: Anton Sergeev Date: Wed, 6 May 2015 21:25:26 +0600 Subject: [PATCH] Make CMake option for perf-tools This allow disable making perf-tools in Release build type Signed-off-by: Anton Sergeev --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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)