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