From 8d88a9328eb57666297760f6da6af29d9396b6d3 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 1 Jul 2022 16:03:47 +0200 Subject: Issue #1817 - Detect MFC library path on VS2017. BZ Bug 1318189 --- build/moz.configure/windows.configure | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build/moz.configure/windows.configure b/build/moz.configure/windows.configure index 1ad2cd3eb6..9df4e11fbd 100644 --- a/build/moz.configure/windows.configure +++ b/build/moz.configure/windows.configure @@ -279,8 +279,11 @@ def include_path(vc_path, windows_sdk_dir, ucrt_sdk_dir, dia_sdk_dir): return atlmfc_dir = os.path.join(vc_path, 'atlmfc', 'include') if not os.path.isdir(atlmfc_dir): - die('Cannot find the ATL/MFC headers in the Visual C++ directory (%s). ' - 'Please install them.' % vc_path) + # For Visual Studio 2017 + atlmfc_dir = os.path.join(vc_path, 'atlmfc', 'lib', sdk_target) + if not os.path.isdir(atlmfc_dir): + die('Cannot find the ATL/MFC libraries in the Visual C++ directory ' + '(%s). Please install them.' % vc_path) winrt_dir = os.path.join(windows_sdk_dir.include, 'winrt') if not os.path.isdir(winrt_dir): -- cgit v1.2.3