Navigation


Changeset 1287:38b0e251b821 in freeDiameter for CMakeLists.txt


Ignore:
Timestamp:
May 3, 2015, 9:55:18 PM (9 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Select Debug build type by default if none specified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r1285 r1287  
    4040# All source code should be POSIX 200112L compatible, but some other extensions might be used, so:
    4141ADD_DEFINITIONS(-D_GNU_SOURCE)
     42
     43# Set a default build type if none was specified
     44if(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")
     50endif()
    4251
    4352# Add a "Profiling" build type
Note: See TracChangeset for help on using the changeset viewer.