Skip to content

Commit

Permalink
[cmake] Fix gprof profiler option.
Browse files Browse the repository at this point in the history
  • Loading branch information
fleroviux committed Jun 27, 2020
1 parent eead12d commit b382cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_CXX_COMPILER_ID STREQUAL Clang)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Ofast")

option(PROFILE_GPROF "Profile with gprof" OFF)
if (PROFILE)
if (PROFILE_GPROF)
add_definitions(-pg)
set(CMAKE_EXE_LINKER_FLAGS -pg)
endif()
Expand Down

0 comments on commit b382cc7

Please sign in to comment.