File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Sharpmake.Generators/VisualStudio
Sharpmake.Platforms/Sharpmake.CommonPlatforms Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -771,6 +771,9 @@ private static void FillIncludeDirectoriesOptions(GenerationContext context)
771771 var platformIncludePaths = platformVcxproj . GetPlatformIncludePaths ( context ) ;
772772 context . Options [ "AdditionalPlatformIncludeDirectories" ] = platformIncludePaths . Any ( ) ? Util . PathGetRelative ( context . ProjectDirectory , platformIncludePaths ) . JoinStrings ( ";" ) : FileGeneratorUtilities . RemoveLineTag ;
773773
774+ var nmakeIncludeSearchPath = includePaths . Concat ( platformIncludePaths ) ;
775+ context . Options [ "NMakeIncludeSearchPath" ] = nmakeIncludeSearchPath . Any ( ) ? Util . PathGetRelative ( context . ProjectDirectory , nmakeIncludeSearchPath ) . JoinStrings ( ";" ) : FileGeneratorUtilities . RemoveLineTag ;
776+
774777 // Fill resource include dirs
775778 var resourceIncludePaths = platformVcxproj . GetResourceIncludePaths ( context ) ;
776779 context . Options [ "AdditionalResourceIncludeDirectories" ] = resourceIncludePaths . Any ( ) ? Util . PathGetRelative ( context . ProjectDirectory , resourceIncludePaths ) . JoinStrings ( ";" ) : FileGeneratorUtilities . RemoveLineTag ;
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ public abstract partial class BasePlatform
272272del ""[options.OutputDirectory]\[conf.TargetFileFullName].pdb"" >NUL 2>NUL</NMakeCleanCommandLine>
273273 <NMakeOutput>[options.OutputFile]</NMakeOutput>
274274 <NMakePreprocessorDefinitions>[EscapeXML:options.PreprocessorDefinitions][EscapeXML:options.IntellisenseAdditionalDefines]</NMakePreprocessorDefinitions>
275- <NMakeIncludeSearchPath>[options.AdditionalIncludeDirectories ]</NMakeIncludeSearchPath>
275+ <NMakeIncludeSearchPath>[options.NMakeIncludeSearchPath ]</NMakeIncludeSearchPath>
276276 <NMakeForcedIncludes>[options.ForcedIncludeFiles]</NMakeForcedIncludes>
277277 <AdditionalOptions>[options.IntellisenseCommandLineOptions]</AdditionalOptions>
278278 </PropertyGroup>
@@ -294,7 +294,7 @@ public abstract partial class BasePlatform
294294 <NMakeCleanCommandLine>[conf.CustomBuildSettings.CleanCommand]</NMakeCleanCommandLine>
295295 <NMakeOutput>[conf.CustomBuildSettings.OutputFile]</NMakeOutput>
296296 <NMakePreprocessorDefinitions>[EscapeXML:options.PreprocessorDefinitions]</NMakePreprocessorDefinitions>
297- <NMakeIncludeSearchPath>[options.AdditionalIncludeDirectories ]</NMakeIncludeSearchPath>
297+ <NMakeIncludeSearchPath>[options.NMakeIncludeSearchPath ]</NMakeIncludeSearchPath>
298298 <NMakeForcedIncludes>[options.ForcedIncludeFiles]</NMakeForcedIncludes>
299299 <AdditionalOptions>[options.IntellisenseCommandLineOptions]</AdditionalOptions>
300300 </PropertyGroup>
You can’t perform that action at this time.
0 commit comments