add gprof linker flag

This commit is contained in:
Tim Felgentreff 2022-05-24 05:09:54 +02:00
parent 59f99651bb
commit c09468468f

View file

@ -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