Mercurial > hg > freeDiameter
comparison CMakeLists.txt @ 1287:38b0e251b821
Select Debug build type by default if none specified
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sun, 03 May 2015 20:55:18 +0800 |
parents | 1e893500dc72 |
children | 08a82e819513 |
comparison
equal
deleted
inserted
replaced
1286:ecb844d6d87d | 1287:38b0e251b821 |
---|---|
37 SET(INSTALL_LIBRARY_SUFFIX ${LIB_INSTALL_DIR} CACHE PATH "Directory where the freeDiameter libraries are installed (relative to CMAKE_INSTALL_PREFIX).") | 37 SET(INSTALL_LIBRARY_SUFFIX ${LIB_INSTALL_DIR} CACHE PATH "Directory where the freeDiameter libraries are installed (relative to CMAKE_INSTALL_PREFIX).") |
38 SET(INSTALL_EXTENSIONS_SUFFIX ${LIB_INSTALL_DIR}/freeDiameter CACHE PATH "Directory where the extensions are installed / searched (relative to CMAKE_INSTALL_PREFIX).") | 38 SET(INSTALL_EXTENSIONS_SUFFIX ${LIB_INSTALL_DIR}/freeDiameter CACHE PATH "Directory where the extensions are installed / searched (relative to CMAKE_INSTALL_PREFIX).") |
39 | 39 |
40 # All source code should be POSIX 200112L compatible, but some other extensions might be used, so: | 40 # All source code should be POSIX 200112L compatible, but some other extensions might be used, so: |
41 ADD_DEFINITIONS(-D_GNU_SOURCE) | 41 ADD_DEFINITIONS(-D_GNU_SOURCE) |
42 | |
43 # Set a default build type if none was specified | |
44 if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) | |
45 message(STATUS "Setting build type to 'Debug' as none was specified.") | |
46 set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE) | |
47 # Set the possible values of build type for cmake-gui | |
48 set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" | |
49 "MinSizeRel" "RelWithDebInfo" "Profiling" "MaxPerformance" "DebianPackage" "DebugValgrind") | |
50 endif() | |
42 | 51 |
43 # Add a "Profiling" build type | 52 # Add a "Profiling" build type |
44 # SET(CMAKE_BUILD_TYPE Profiling) | 53 # SET(CMAKE_BUILD_TYPE Profiling) |
45 SET(CMAKE_C_FLAGS_PROFILING "-fprofile-arcs -ftest-coverage -fstack-protector -g -Wall") | 54 SET(CMAKE_C_FLAGS_PROFILING "-fprofile-arcs -ftest-coverage -fstack-protector -g -Wall") |
46 | 55 |