Changes in CMakeLists.txt [1088:4000b7ef4e01:1137:ca4e4a5e9b6e] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r1088 r1137 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) 6 7 IF(POLICY CMP0026) 8 #This is for copying the dll's needed by glpk (in lp_test and mip_test) 9 CMAKE_POLICY(SET CMP0026 OLD) 10 ENDIF(POLICY CMP0026) 2 11 3 12 SET(PROJECT_NAME "LEMON") … … 62 71 FIND_PACKAGE(Doxygen) 63 72 FIND_PACKAGE(Ghostscript) 73 74 IF(WIN32) 75 SET(LEMON_WIN32 TRUE) 76 ENDIF(WIN32) 64 77 65 78 SET(LEMON_ENABLE_GLPK YES CACHE STRING "Enable GLPK solver backend.") … … 122 135 SET(LEMON_DEFAULT_LP ${DEFAULT_LP} CACHE STRING 123 136 "Default LP solver backend (GLPK, CPLEX, CLP or SOPLEX)" FORCE) 137 ELSE() 138 SET(LEMON_DEFAULT_LP ${DEFAULT_LP} CACHE STRING 139 "Default LP solver backend (GLPK, CPLEX, CLP or SOPLEX)") 124 140 ENDIF() 125 141 IF(NOT LEMON_DEFAULT_MIP OR … … 129 145 SET(LEMON_DEFAULT_MIP ${DEFAULT_MIP} CACHE STRING 130 146 "Default MIP solver backend (GLPK, CPLEX or CBC)" FORCE) 147 ELSE() 148 SET(LEMON_DEFAULT_MIP ${DEFAULT_MIP} CACHE STRING 149 "Default MIP solver backend (GLPK, CPLEX or CBC)") 131 150 ENDIF() 132 151 … … 141 160 ELSEIF(MSVC) 142 161 # This part is unnecessary 'casue the same is set by the lemon/core.h. 143 # Still keep it as an example. 144 SET(CXX_WARNING "/wd4250 /wd4355 /wd4503 /wd4800 /wd4996") 162 # Still kept as an example. 163 164 # SET(CXX_WARNING "/wd4250 /wd4267 /wd4355 /wd4503 /wd4800 /wd4996") 165 145 166 # Suppressed warnings: 146 167 # C4250: 'class1' : inherits 'class2::member' via dominance 168 # C4267: conversion from 'size_t' to 'type', possible loss of data 147 169 # C4355: 'this' : used in base member initializer list 148 170 # C4503: 'function' : decorated name length exceeded, name was truncated … … 159 181 160 182 IF(MSVC) 183 SET(CMAKE_CXX_FLAGS "/bigobj ${CMAKE_CXX_FLAGS}") 161 184 SET( CMAKE_CXX_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING 162 185 "Flags used by the C++ compiler during maintainer builds." … … 181 204 ) 182 205 SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER 183 " -Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING206 "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING 184 207 "Flags used for linking binaries during maintainer builds." 185 208 ) 186 209 SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER 187 " -Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING210 "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING 188 211 "Flags used by the shared libraries linker during maintainer builds." 189 212 )
Note: See TracChangeset
for help on using the changeset viewer.