Skip to content

Commit fcbf893

Browse files
committed
Update logic for flamegraph option
1 parent 7c09ea6 commit fcbf893

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ if(flamegraph)
6363
# Check if perf is available in OS:
6464
find_program(PERF_EXECUTABLE perf)
6565
if(NOT PERF_EXECUTABLE)
66-
message(WARNING "Perf is not available in your system, please install it. Turning off the flamegraph option.")
66+
message(WARNING "Perf is not available in your system, please install it.")
6767
set(flamegraph OFF CACHE BOOL "")
68+
else()
69+
include(FlameGraph)
70+
add_custom_target(flamegraph-download DEPENDS FlameGraph)
6871
endif()
69-
include(FlameGraph)
70-
add_custom_target(flamegraph-download DEPENDS FlameGraph)
7172
endif()
7273

7374
#---Add ROOT include direcories and used compilation flags

0 commit comments

Comments
 (0)