1.1 --- a/CMakeLists.txt Wed Nov 12 14:11:20 2014 +0100
1.2 +++ b/CMakeLists.txt Thu Apr 02 14:09:21 2015 +0200
1.3 @@ -150,10 +150,13 @@
1.4 SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb")
1.5 ELSEIF(MSVC)
1.6 # This part is unnecessary 'casue the same is set by the lemon/core.h.
1.7 - # Still keep it as an example.
1.8 - SET(CXX_WARNING "/wd4250 /wd4355 /wd4503 /wd4800 /wd4996")
1.9 + # Still kept as an example.
1.10 +
1.11 + # SET(CXX_WARNING "/wd4250 /wd4267 /wd4355 /wd4503 /wd4800 /wd4996")
1.12 +
1.13 # Suppressed warnings:
1.14 # C4250: 'class1' : inherits 'class2::member' via dominance
1.15 + # C4267: conversion from 'size_t' to 'type', possible loss of data
1.16 # C4355: 'this' : used in base member initializer list
1.17 # C4503: 'function' : decorated name length exceeded, name was truncated
1.18 # C4800: 'type' : forcing value to bool 'true' or 'false'
1.19 @@ -168,6 +171,7 @@
1.20 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LEMON_CXX_WARNING_FLAGS}")
1.21
1.22 IF(MSVC)
1.23 + SET(CMAKE_CXX_FLAGS "/bigobj ${CMAKE_CXX_FLAGS}")
1.24 SET( CMAKE_CXX_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING
1.25 "Flags used by the C++ compiler during maintainer builds."
1.26 )