COIN-OR::LEMON - Graph Library

Changeset 940:64260c0f58eb in lemon-main


Ignore:
Timestamp:
04/07/11 16:57:35 (14 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
941:6660ac776acf, 960:98ddf8d5fda9
Phase:
public
Message:

Better Win CodeBlock?/MinGW support (#418)

  • Remove -ansi compilation flag
  • Don't include sys/times.h when WIN32 is defined
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r927 r940  
    5252ELSE()
    5353  IF(CMAKE_COMPILER_IS_GNUCXX)
    54     SET(CXX_WARNING "-Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas")
     54    SET(CXX_WARNING "-Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas")
    5555    SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb")
    5656    SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb")
  • lemon/bits/windows.cc

    r493 r940  
    4141#include <unistd.h>
    4242#include <ctime>
     43#ifndef WIN32
    4344#include <sys/times.h>
     45#endif
    4446#include <sys/time.h>
    4547#endif
Note: See TracChangeset for help on using the changeset viewer.