Changeset 1129:39b6e65574c6 in lemon-main
- Timestamp:
- 04/02/15 22:34:03 (10 years ago)
- Branch:
- default
- Parents:
- 1127:27d7d232fbcc (diff), 1128:ee96cd1cad8a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r1123 r1129 4 4 CMAKE_POLICY(SET CMP0048 OLD) 5 5 ENDIF(POLICY CMP0048) 6 7 IF(POLICY CMP0043) 8 CMAKE_POLICY(SET CMP0043 OLD) 9 ENDIF(POLICY CMP0043) 6 10 7 11 SET(PROJECT_NAME "LEMON") … … 226 230 FORCE ) 227 231 232 SET_DIRECTORY_PROPERTIES(PROPERTIES 233 COMPILE_DEFINITIONS_DEBUG "LEMON_ENABLE_DEBUG" 234 COMPILE_DEFINITIONS_MAINTAINER "LEMON_ENABLE_DEBUG" 235 ) 228 236 229 237 INCLUDE(CheckTypeSize) -
CMakeLists.txt
r1128 r1129 1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6) 1 CMAKE_MINIMUM_REQUIRED(VERSION 2.8) 2 3 IF(POLICY CMP0048) 4 CMAKE_POLICY(SET CMP0048 OLD) 5 ENDIF(POLICY CMP0048) 2 6 3 7 IF(POLICY CMP0043) … … 126 130 SET(LEMON_DEFAULT_LP ${DEFAULT_LP} CACHE STRING 127 131 "Default LP solver backend (GLPK, CPLEX, CLP or SOPLEX)" FORCE) 132 ELSE() 133 SET(LEMON_DEFAULT_LP ${DEFAULT_LP} CACHE STRING 134 "Default LP solver backend (GLPK, CPLEX, CLP or SOPLEX)") 128 135 ENDIF() 129 136 IF(NOT LEMON_DEFAULT_MIP OR … … 133 140 SET(LEMON_DEFAULT_MIP ${DEFAULT_MIP} CACHE STRING 134 141 "Default MIP solver backend (GLPK, CPLEX or CBC)" FORCE) 142 ELSE() 143 SET(LEMON_DEFAULT_MIP ${DEFAULT_MIP} CACHE STRING 144 "Default MIP solver backend (GLPK, CPLEX or CBC)") 135 145 ENDIF() 136 146 … … 145 155 ELSEIF(MSVC) 146 156 # This part is unnecessary 'casue the same is set by the lemon/core.h. 147 # Still keep it as an example. 148 SET(CXX_WARNING "/wd4250 /wd4355 /wd4503 /wd4800 /wd4996") 157 # Still kept as an example. 158 159 # SET(CXX_WARNING "/wd4250 /wd4267 /wd4355 /wd4503 /wd4800 /wd4996") 160 149 161 # Suppressed warnings: 150 162 # C4250: 'class1' : inherits 'class2::member' via dominance 163 # C4267: conversion from 'size_t' to 'type', possible loss of data 151 164 # C4355: 'this' : used in base member initializer list 152 165 # C4503: 'function' : decorated name length exceeded, name was truncated … … 163 176 164 177 IF(MSVC) 178 SET(CMAKE_CXX_FLAGS "/bigobj ${CMAKE_CXX_FLAGS}") 165 179 SET( CMAKE_CXX_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING 166 180 "Flags used by the C++ compiler during maintainer builds." … … 185 199 ) 186 200 SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER 187 " -Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING201 "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING 188 202 "Flags used for linking binaries during maintainer builds." 189 203 ) 190 204 SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER 191 " -Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING205 "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING 192 206 "Flags used by the shared libraries linker during maintainer builds." 193 207 )
Note: See TracChangeset
for help on using the changeset viewer.