Changeset 12060 for CMakeLists.txt
- Timestamp:
- Jun 19, 2013, 11:05:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r10752 r12060 43 43 set(ariba_VERSION_MAJOR 0) 44 44 set(ariba_VERSION_MINOR 8) 45 set(ariba_VERSION_PATCH 2)45 set(ariba_VERSION_PATCH 99) 46 46 set(ariba_VERSION ${ariba_VERSION_MAJOR}.${ariba_VERSION_MINOR}.${ariba_VERSION_PATCH}) 47 47 … … 51 51 list(APPEND CMAKE_MODULE_PATH "${ariba_SOURCE_DIR}/CMakeModules") 52 52 53 # Provide some choices for CMAKE_BUILD_TYPE 54 set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 55 "" Release Debug RelWithDebInfo MinSizeRel) 53 54 ## Add build type: Profiling ## 55 SET( CMAKE_CXX_FLAGS_PROFILING "-O2 -g -pg" CACHE STRING 56 "Flags used by the C++ compiler during profiling builds." 57 FORCE ) 58 SET( CMAKE_C_FLAGS_PROFILING "-O2 -g -pg" CACHE STRING 59 "Flags used by the C compiler during profiling builds." 60 FORCE ) 61 SET( CMAKE_EXE_LINKER_FLAGS_PROFILING 62 "" CACHE STRING 63 "Flags used for linking binaries during profiling builds." 64 FORCE ) 65 SET( CMAKE_SHARED_LINKER_FLAGS_PROFILING 66 "" CACHE STRING 67 "Flags used by the shared libraries linker during profiling builds." 68 FORCE ) 69 MARK_AS_ADVANCED( 70 CMAKE_CXX_FLAGS_PROFILING 71 CMAKE_C_FLAGS_PROFILING 72 CMAKE_EXE_LINKER_FLAGS_PROFILING 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 81 IF(NOT CMAKE_BUILD_TYPE) 82 SET(CMAKE_BUILD_TYPE Release 83 CACHE STRING "Choose the type of build : None Debug Release RelWithDebInfo MinSizeRel Profiling." 84 FORCE) 85 ENDIF(NOT CMAKE_BUILD_TYPE) 86 message("---> Current build type is: ${CMAKE_BUILD_TYPE}") 87 88 89 90 91 ## Provide some choices for CMAKE_BUILD_TYPE 92 #set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 93 # "" Release Debug RelWithDebInfo MinSizeRel) 56 94 57 95 # Explicitly add BUILD_SHARED_LIBS to the user interface and default to on
Note:
See TracChangeset
for help on using the changeset viewer.