std::min/max are defined in <algorithm>

handle error in msvc12 when linking against msvc10 libs
This commit is contained in:
Peter Kümmel 2014-06-07 08:17:20 +02:00
parent 080fca85a8
commit 6b4c3036aa
5 changed files with 8 additions and 1 deletions

View File

@ -205,6 +205,10 @@ if(LYX_DEPENDENCIES_DOWNLOAD)
endif()
endforeach()
set(GNUWIN32_DIR ${LYX_DEPENDENCIES_DIR}/deps20)
if(MSVC12)
# handle error in msvc12 when linking against msvc10 libs
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /vd2")
endif()
endif()

View File

@ -15,7 +15,7 @@
#include "CursorSlice.h"
#include <vector>
#include <algorithm>
namespace lyx {

View File

@ -25,6 +25,7 @@
#include <boost/cstdint.hpp>
#include <sstream>
#include <algorithm>
using namespace std;
using namespace lyx::support;

View File

@ -21,6 +21,7 @@
#include "frontends/Painter.h"
#include <ostream>
#include <algorithm>
using namespace std;

View File

@ -27,6 +27,7 @@
#include "support/docstream.h"
#include <map>
#include <algorithm>
using namespace std;