COIN-OR::LEMON - Graph Library

Ignore:
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)
     1CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
    112
    123SET(PROJECT_NAME "LEMON")
     
    7162FIND_PACKAGE(Doxygen)
    7263FIND_PACKAGE(Ghostscript)
    73 
    74 IF(WIN32)
    75   SET(LEMON_WIN32 TRUE)
    76 ENDIF(WIN32)
    7764
    7865SET(LEMON_ENABLE_GLPK YES CACHE STRING "Enable GLPK solver backend.")
     
    135122  SET(LEMON_DEFAULT_LP ${DEFAULT_LP} CACHE STRING
    136123    "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)")
    140124ENDIF()
    141125IF(NOT LEMON_DEFAULT_MIP OR
     
    145129  SET(LEMON_DEFAULT_MIP ${DEFAULT_MIP} CACHE STRING
    146130    "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)")
    150131ENDIF()
    151132
     
    160141  ELSEIF(MSVC)
    161142    # 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")
    166145    # Suppressed warnings:
    167146    # C4250: 'class1' : inherits 'class2::member' via dominance
    168     # C4267: conversion from 'size_t' to 'type', possible loss of data
    169147    # C4355: 'this' : used in base member initializer list
    170148    # C4503: 'function' : decorated name length exceeded, name was truncated
     
    181159
    182160IF(MSVC)
    183   SET(CMAKE_CXX_FLAGS "/bigobj ${CMAKE_CXX_FLAGS}")
    184161  SET( CMAKE_CXX_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING
    185162    "Flags used by the C++ compiler during maintainer builds."
     
    204181    )
    205182  SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER
    206     "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING
     183    "-Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING
    207184    "Flags used for linking binaries during maintainer builds."
    208185    )
    209186  SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER
    210     "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING
     187    "-Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING
    211188    "Flags used by the shared libraries linker during maintainer builds."
    212189    )
Note: See TracChangeset for help on using the changeset viewer.