X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=82448f6d332ad5bf07e5e5c3702a705c2fd98f96;hb=fc0ab1283c7153c3c1a09febd0951ec45b4126bb;hp=fd1fe126b048a2c0f18b242eaed833ca4dad2a68;hpb=4459603b61fd694f79469ec64922e9094a7fac29;p=lyx.git diff --git a/CMakeLists.txt b/CMakeLists.txt index fd1fe126b0..82448f6d33 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -285,9 +285,10 @@ 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? + if(MSVC_VERSION LESS 1915) + set(LYX_USE_STD_REGEX 0) + else() + set(LYX_USE_STD_REGEX 1) endif() endif()