Am Dienstag, 8. Dezember 2015 um 02:38:10, schrieb Uwe Stöhr <uwesto...@web.de> > Am 08.12.2015 um 02:30 schrieb Kornel Benko: > > > We have to set also CXX11COMPILER_FOUND > > > > set(LYX_USE_CXX11 1) > > set(CXX11_FLAG "") > > set(CXX11COMPILER_FOUND 1) > > This doesn't solve the problem. > > defined(LYX_USE_CXX11) > > is still false in regex.h > > regards Uwe
Try this patch. Kornel
signature.asc
Description: This is a digitally signed message part.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5840ad0..3286c4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -269,9 +269,13 @@ if(UNIX OR MINGW) endif() else() set(LYX_USE_STD_REGEX 0) -# if(MSVC10) -# set(LYX_USE_STD_REGEX 1) #TODO should we use it in ECMAScript mode? -# endif() + if(WIN32) + if (LYX_ENABLE_CXX11) + set(LYX_USE_STD_REGEX 1) #TODO should we use it in ECMAScript mode? + set(LYX_USE_CXX11 1) + set(CXX11_FLAG "") + endif() + endif() endif()