Re: [CMake] How can I add gprof profiler to my CMakeLists.txt?

2009-12-15 Thread Marcel Loose
On Tue, 2009-12-15 at 12:08 +0800, Water Lin wrote: I want to use gprof to analyze my code. So I try to embed the -pg paramter for g++ in my CMakeLists.txt file. But after I embeded the -pg to my CMakeLists.txt like this: - add_definitions(-pg -march=pentium4 -msse3 -g) -

[CMake] How can I add gprof profiler to my CMakeLists.txt?

2009-12-14 Thread Water Lin
I want to use gprof to analyze my code. So I try to embed the -pg paramter for g++ in my CMakeLists.txt file. But after I embeded the -pg to my CMakeLists.txt like this: - add_definitions(-pg -march=pentium4 -msse3 -g) - and I recompile my code. There is no gprof output file.