changeset 75:ec0f4efefb7b

Add profiling options for all C/CXX code if requested
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 19 Mar 2014 15:36:35 +0000
parents 7ed285380301
children 63b79d135631
files CMakeLists.txt
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Wed Mar 19 15:35:58 2014 +0000
+++ b/CMakeLists.txt	Wed Mar 19 15:36:35 2014 +0000
@@ -46,8 +46,6 @@
    set(PROFILING_LIBS gcov)
 endif()
 
-SET(CMAKE_EXE_LINKER_FLAGS=${PROFILING_FLAGS})
-
 if(UNIX)
    set(HARDENING_FLAGS " ${HARDENING_FLAGS} -pie -fPIE -ftrapv")
    set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,-z,relro,-z,now")
@@ -55,8 +53,8 @@
    set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,--dynamicbase -Wl,--nxcompat")
 endif()
 
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${HARDENING_FLAGS}")
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARN_HARDENING_FLAGS} ${HARDENING_FLAGS}")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${HARDENING_FLAGS} ${PROFILING_FLAGS}")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARN_HARDENING_FLAGS} ${HARDENING_FLAGS} ${PROFILING_FLAGS}")
 
 add_custom_target(static_check)
 

http://wald.intevation.org/projects/trustbridge/