summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac7
-rw-r--r--scp2/source/ooo/vc_redist.scp19
2 files changed, 25 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 72774d715efd..e60822d9df26 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6535,7 +6535,12 @@ if test $_os = "WINNT"; then
MSVC_DLL_PATH="$msvcdllpath"
MSVC_DLLS="$msvcdlls"
MSM_PATH="$msmdir"
- SCPDEFS="$SCPDEFS -DWITH_VC${VCVER}_REDIST"
+ # MSVC 15.3 changed it to VC141
+ if echo "$MSVC_DLL_PATH" | grep -q "VC141.CRT$"; then
+ SCPDEFS="$SCPDEFS -DWITH_VC141_REDIST"
+ else
+ SCPDEFS="$SCPDEFS -DWITH_VC${VCVER}_REDIST"
+ fi
if test "$VCREDIST_DIR" = "no"; then
dnl explicitly disabled
VCREDIST_DIR=""
diff --git a/scp2/source/ooo/vc_redist.scp b/scp2/source/ooo/vc_redist.scp
index 40c6a7e8902e..9b414b8e39fa 100644
--- a/scp2/source/ooo/vc_redist.scp
+++ b/scp2/source/ooo/vc_redist.scp
@@ -58,6 +58,25 @@ End
#endif
+#if defined(WITH_VC141_REDIST)
+
+#if defined WINDOWS_X64
+MergeModule gid_MergeModule_Microsoft_VC141_CRT_x64
+#else
+MergeModule gid_MergeModule_Microsoft_VC141_CRT_x86
+#endif
+ Feature = gm_Root;
+#if defined WINDOWS_X64
+ Name = "Microsoft_VC141_CRT_x64.msm";
+#else
+ Name = "Microsoft_VC141_CRT_x86.msm";
+#endif
+ RootDir = "TARGETDIR";
+ ComponentCondition = "VC_REDIST=1";
+End
+
+#endif
+
#endif // MSM_PATH
#if defined(VCREDIST_EXE_NAME)