COIN-OR::LEMON - Graph Library

Ticket #278: remove-have-config-h.patch

File remove-have-config-h.patch, 1.2 KB (added by Akos Ladanyi, 16 years ago)

d21b38647e53

  • CMakeLists.txt

    # HG changeset patch
    # User Akos Ladanyi <ladanyi@tmit.bme.hu>
    # Date 1240933488 -3600
    # Node ID d21b38647e53fee3c3e4efa31f4538c7732d3ba8
    # Parent  586b65073025e0d8c88121bd976b69d1b618fb01
    Remove superfluous HAVE_CONFIG_H (#278)
    
    diff --git a/CMakeLists.txt b/CMakeLists.txt
    a b  
    1717FIND_PACKAGE(CPLEX)
    1818FIND_PACKAGE(COIN)
    1919
    20 ADD_DEFINITIONS(-DHAVE_CONFIG_H)
    21 
    2220IF(MSVC)
    2321  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4250 /wd4355 /wd4800 /wd4996")
    2422# Suppressed warnings:
     
    2826# C4996: 'function': was declared deprecated
    2927ENDIF(MSVC)
    3028
    31 ADD_DEFINITIONS(-DHAVE_CONFIG_H)
    32 
    3329INCLUDE(CheckTypeSize)
    3430CHECK_TYPE_SIZE("long long" LEMON_LONG_LONG)
    3531
  • test/lp_test.cc

    diff --git a/test/lp_test.cc b/test/lp_test.cc
    a b  
    2121#include "test_tools.h"
    2222#include <lemon/tolerance.h>
    2323
    24 #ifdef HAVE_CONFIG_H
    2524#include <lemon/config.h>
    26 #endif
    2725
    2826#ifdef LEMON_HAVE_GLPK
    2927#include <lemon/glpk.h>
  • test/mip_test.cc

    diff --git a/test/mip_test.cc b/test/mip_test.cc
    a b  
    1818
    1919#include "test_tools.h"
    2020
    21 #ifdef HAVE_CONFIG_H
    2221#include <lemon/config.h>
    23 #endif
    2422
    2523#ifdef LEMON_HAVE_CPLEX
    2624#include <lemon/cplex.h>