From fc9a2768a1212683fe6fe607d20a4da568e03904 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Tue, 6 Jun 2023 23:09:58 +1000 Subject: [PATCH] windows/msvc/paths.props: Dont add variant path to PyIncDirs. This file is shared by mpy-cross.vcxproj, where PyVariant will be not set (because common.props explicitly doesn't set it when building mpy-cross). Update common.props to only add the variant path to PyIncDirs if not building mpy-cross. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared --- ports/windows/msvc/common.props | 3 +++ ports/windows/msvc/paths.props | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ports/windows/msvc/common.props b/ports/windows/msvc/common.props index 55c9c934f2..da84004f7f 100644 --- a/ports/windows/msvc/common.props +++ b/ports/windows/msvc/common.props @@ -19,6 +19,9 @@ $(PyBuildDir)copycookie$(Configuration)$(Platform) MultiByte + + $(PyIncDirs);$(PyVariantDir) + $(PyIncDirs);%(AdditionalIncludeDirectories) diff --git a/ports/windows/msvc/paths.props b/ports/windows/msvc/paths.props index 767772a1aa..1268471cef 100644 --- a/ports/windows/msvc/paths.props +++ b/ports/windows/msvc/paths.props @@ -31,8 +31,8 @@ $(PyWinDir)variants\$(PyVariant)\ $(PyBuildDir) - - $(PyIncDirs);$(PyBaseDir);$(PyWinDir);$(PyBuildDir);$(PyWinDir)msvc;$(PyVariantDir) + + $(PyIncDirs);$(PyBaseDir);$(PyWinDir);$(PyBuildDir);$(PyWinDir)msvc