X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=82448f6d332ad5bf07e5e5c3702a705c2fd98f96;hb=d104005151578e2be4772b24664ea8e10e0ecf7d;hp=d36eb710dc9f940545cbc5594fbde01efd87851c;hpb=1ae013f816de562a4181696d32186d0845835748;p=lyx.git diff --git a/CMakeLists.txt b/CMakeLists.txt index d36eb710dc..82448f6d33 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -285,10 +285,11 @@ if(UNIX OR MINGW) endif() set(LYX_GCC11_MODE "${CXX11_FLAG}") 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(MSVC_VERSION LESS 1915) + set(LYX_USE_STD_REGEX 0) + else() + set(LYX_USE_STD_REGEX 1) + endif() endif()