Hi Deb, you need to add the -pg switch like this: SET_TARGET_PROPERTIES(target_name PROPERTIES COMPILE_FLAGS -pg LINK_FLAGS -pg) Tomas # Hi, # # I would like to profile code generated through ccmake with gprof. What flags # do I need to set up when I run ccmake? # Thanks # # Deb