How do I set the gprof flags for the compiler and linker of GNU g++ in a CMakeLists.txt?
My current approach,
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -pg")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -pg")
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO} -pg")
does not allow gprof to demangle the C++ functions. Any ideas? (I am using C++11)
CMakeLists.txt
. – Dicotyledon