add gprof linker flag
This commit is contained in:
parent
59f99651bb
commit
c09468468f
1 changed files with 1 additions and 0 deletions
|
@ -899,6 +899,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Profile")
|
|||
endif()
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pg -g -ggdb")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg -g -ggdb")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
|
||||
endif()
|
||||
# TODO: Add support for other compilers
|
||||
|
||||
|
|
Loading…
Reference in a new issue