From 69df51911c09ef4d6262948b69aa12580e434892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Sat, 22 Sep 2018 13:47:29 +0200 Subject: [PATCH] Fixed warning LNK4068: /MACHINE not specified; defaulting to X64 --- .gitignore | 10 ++++------ build/Build.cs | 11 ++++++++++- src/ViGEmClient.vcxproj | 12 ++++++++---- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 0b18a8b..76e53a4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ /.vs/ViGEmBus/v15 /build/bin/Release /build/obj/Release -/lib/x64 +/lib /packages /sys/x64/Release /x64/Release @@ -19,9 +19,8 @@ /build/bin/Debug /build/obj/Debug /bin -/sys/x64/Debug -/x64/Debug -/x64/Debug (static) +/sys/x64 +/x64 *.user /.vs/config /sys/RCa21300 @@ -43,5 +42,4 @@ *.aps /Release_LIB /src/Release_LIB -/src/x64/Release_LIB -/x64/Release_LIB +/src/x64 diff --git a/build/Build.cs b/build/Build.cs index 6dd1cf9..0986df4 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -44,7 +44,16 @@ class Build : NukeBuild .SetTargets("Rebuild") .SetConfiguration(Configuration) .SetMaxCpuCount(Environment.ProcessorCount) - .SetNodeReuse(IsLocalBuild)); + .SetNodeReuse(IsLocalBuild) + .SetTargetPlatform(MSBuildTargetPlatform.x64)); + + MSBuild(s => s + .SetTargetPath(SolutionFile) + .SetTargets("Rebuild") + .SetConfiguration(Configuration) + .SetMaxCpuCount(Environment.ProcessorCount) + .SetNodeReuse(IsLocalBuild) + .SetTargetPlatform(MSBuildTargetPlatform.x86)); }); private Target Pack => _ => _ diff --git a/src/ViGEmClient.vcxproj b/src/ViGEmClient.vcxproj index e087262..bd1aa62 100644 --- a/src/ViGEmClient.vcxproj +++ b/src/ViGEmClient.vcxproj @@ -130,31 +130,35 @@ $(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath); + $(SolutionDir)lib\debug\$(PlatformShortName)\ $(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath); - $(SolutionDir)bin\$(Platform)\ + $(SolutionDir)bin\debug\$(PlatformShortName)\ $(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath); + $(SolutionDir)lib\release\$(PlatformShortName)\ $(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath); - $(SolutionDir)bin\$(Platform)\ + $(SolutionDir)bin\release\$(PlatformShortName)\ $(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath); + $(SolutionDir)lib\debug\$(PlatformShortName)\ $(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath); - $(SolutionDir)bin\$(Platform)\ + $(SolutionDir)bin\debug\$(PlatformShortName)\ $(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath); + $(SolutionDir)lib\release\$(PlatformShortName)\ $(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath); - $(SolutionDir)bin\$(Platform)\ + $(SolutionDir)bin\release\$(PlatformShortName)\