comparison CMakeLists.txt @ 416:fa39aecb41c6

Fix profiling profile for FreeBSD8.0
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 08 Jul 2010 17:54:55 +0900
parents 0c91b5bf19b1
children bfe99640cdfa
comparison
equal deleted inserted replaced
415:1f4aa49b26e4 416:fa39aecb41c6
36 # All source code should be POSIX 200112L compatible, but some other extensions might be used, so: 36 # All source code should be POSIX 200112L compatible, but some other extensions might be used, so:
37 ADD_DEFINITIONS(-D_GNU_SOURCE) 37 ADD_DEFINITIONS(-D_GNU_SOURCE)
38 38
39 # Add a "Profiling" build type 39 # Add a "Profiling" build type
40 # SET(CMAKE_BUILD_TYPE Profiling) 40 # SET(CMAKE_BUILD_TYPE Profiling)
41 SET(CMAKE_C_FLAGS_PROFILING "-fprofile-arcs -ftest-coverage -g -Wall") 41 SET(CMAKE_C_FLAGS_PROFILING "-fprofile-arcs -ftest-coverage -fstack-protector -g -Wall")
42 42
43 # Set the DEBUG flag for Debug and Profiling builds 43 # Set the DEBUG flag for Debug and Profiling builds
44 IF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling") 44 IF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling")
45 SET(DEBUG 1) 45 SET(DEBUG 1)
46 ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling") 46 ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling")
"Welcome to our mercurial repository"