summaryrefslogtreecommitdiff
path: root/build/moz.configure/windows.configure
diff options
context:
space:
mode:
Diffstat (limited to 'build/moz.configure/windows.configure')
-rw-r--r--build/moz.configure/windows.configure7
1 files 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):