Changeset 12349
- Timestamp:
- Aug 31, 2013, 11:26:19 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r12060 r12349 52 52 53 53 54 # # Add build type: Profiling ##54 # Add build type: Profiling 55 55 SET( CMAKE_CXX_FLAGS_PROFILING "-O2 -g -pg" CACHE STRING 56 56 "Flags used by the C++ compiler during profiling builds." … … 72 72 CMAKE_EXE_LINKER_FLAGS_PROFILING 73 73 CMAKE_SHARED_LINKER_FLAGS_PROFILING ) 74 # Update the documentation string of CMAKE_BUILD_TYPE for GUIs 75 #SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING 76 # "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel Profiling." 77 # FORCE ) 78 ## [Add build type: Profiling] ## 79 80 ## set default build type 74 75 # set default build type 81 76 IF(NOT CMAKE_BUILD_TYPE) 82 77 SET(CMAKE_BUILD_TYPE Release … … 84 79 FORCE) 85 80 ENDIF(NOT CMAKE_BUILD_TYPE) 86 message("---> Current build type is: ${CMAKE_BUILD_TYPE}") 87 88 89 81 message(STATUS "Current build type is: ${CMAKE_BUILD_TYPE}") 90 82 91 83 ## Provide some choices for CMAKE_BUILD_TYPE 92 #set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 93 # "" Release Debug RelWithDebInfo MinSizeRel) 84 set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 85 "" Release Debug RelWithDebInfo MinSizeRel Profiling) 86 87 94 88 95 89 # Explicitly add BUILD_SHARED_LIBS to the user interface and default to on
Note:
See TracChangeset
for help on using the changeset viewer.