| ... | ... |
@@ -14,22 +14,12 @@ |
| 14 | 14 |
INCLUDE(FindDoxygen) |
| 15 | 15 |
INCLUDE(FindGhostscript) |
| 16 | 16 |
FIND_PACKAGE(GLPK 4.33) |
| 17 | 17 |
FIND_PACKAGE(CPLEX) |
| 18 | 18 |
FIND_PACKAGE(COIN) |
| 19 | 19 |
|
| 20 |
IF(MSVC) |
|
| 21 |
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4250 /wd4355 /wd4503 /wd4800 /wd4996")
|
|
| 22 |
# Suppressed warnings: |
|
| 23 |
# C4250: 'class1' : inherits 'class2::member' via dominance |
|
| 24 |
# C4355: 'this' : used in base member initializer list |
|
| 25 |
# C4503: 'function' : decorated name length exceeded, name was truncated |
|
| 26 |
# C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning) |
|
| 27 |
# C4996: 'function': was declared deprecated |
|
| 28 |
ENDIF(MSVC) |
|
| 29 |
|
|
| 30 | 20 |
INCLUDE(CheckTypeSize) |
| 31 | 21 |
CHECK_TYPE_SIZE("long long" LEMON_LONG_LONG)
|
| 32 | 22 |
|
| 33 | 23 |
ENABLE_TESTING() |
| 34 | 24 |
|
| 35 | 25 |
ADD_SUBDIRECTORY(lemon) |
| ... | ... |
@@ -24,12 +24,22 @@ |
| 24 | 24 |
|
| 25 | 25 |
#include <lemon/config.h> |
| 26 | 26 |
#include <lemon/bits/enable_if.h> |
| 27 | 27 |
#include <lemon/bits/traits.h> |
| 28 | 28 |
#include <lemon/assert.h> |
| 29 | 29 |
|
| 30 |
// Disable the following warnings when compiling with MSVC: |
|
| 31 |
// C4250: 'class1' : inherits 'class2::member' via dominance |
|
| 32 |
// C4355: 'this' : used in base member initializer list |
|
| 33 |
// C4503: 'function' : decorated name length exceeded, name was truncated |
|
| 34 |
// C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning) |
|
| 35 |
// C4996: 'function': was declared deprecated |
|
| 36 |
#ifdef _MSC_VER |
|
| 37 |
#pragma warning( disable : 4250 4355 4503 4800 4996 ) |
|
| 38 |
#endif |
|
| 39 |
|
|
| 30 | 40 |
///\file |
| 31 | 41 |
///\brief LEMON core utilities. |
| 32 | 42 |
/// |
| 33 | 43 |
///This header file contains core utilities for LEMON. |
| 34 | 44 |
///It is automatically included by all graph types, therefore it usually |
| 35 | 45 |
///do not have to be included directly. |
0 comments (0 inline)