Am Dienstag, 1. Dezember 2015 um 22:06:40, schrieb Georg Baum <georg.b...@post.rwth-aachen.de> > Uwe Stöhr wrote: > > > Am 29.11.2015 um 22:30 schrieb Kornel Benko: > > > >> The problem may also be usage (respective non-usage) of --std=c++11. > >> I already asked, what to do to allow MSVC to use this flag, but got no > >> answer. ATM the windows compilation is probably without, setting the > >> 'LYX_USE_CXX11' to 0 > >> > >> The changes could be built in > >> development/cmake/modules/FindCXX11Compiler.cmake:37 ff The actual search > >> is done at development/cmake/modules/FindCXX11Compiler.cmake:86 ff > > > > I would like to test this. Could you please send me a patch to be able > > to test? > > Please try this one. It assumes that you use the build.bat file to compile, > if you don't, then you need to adjust the call of cmake accordingly. > > MSVC 2010 does not need any special flag to compile in C++11 mode, the > limited subset of C++11 features that it supports is enabled by default. The > only thing I am not 100% sure about is whether the supported subset is > enough for LyX, but I believe it is.
There is missing the patch for searching c++11 flags. They are not needed, but ATM this info is ignored by our script. Additional to your patch we need probably also the attached: > Georg Kornel
signature.asc
Description: This is a digitally signed message part.
diff --git a/development/cmake/modules/FindCXX11Compiler.cmake b/development/cmake/modules/FindCXX11Compiler.cmake index 7d09f8f..49203e6 100644 --- a/development/cmake/modules/FindCXX11Compiler.cmake +++ b/development/cmake/modules/FindCXX11Compiler.cmake @@ -83,6 +83,10 @@ int main() { # check c compiler set(SAFE_CMAKE_REQUIRED_QUIET ${CMAKE_REQUIRED_QUIET}) set(CMAKE_REQUIRED_QUIET ON) +if(MSVC10) + set(LYX_USE_CXX11 1) + set(CXX11_FLAG "") +endif() FOREACH(FLAG ${CXX11_FLAG_CANDIDATES}) SET(SAFE_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") SET(CMAKE_REQUIRED_FLAGS "${FLAG}")