Skip to content

Commit

Permalink
try using cmake --build
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Feb 23, 2024
1 parent 54c9ac0 commit 868974a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build/BuildWindowsTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ public sealed class BuildWindowsTask : FrostingTask<BuildContext>
public override void Run(BuildContext context)
{
var buildWorkingDir = "assimp/";
MSBuildSettings buildSettings = new()
{
Verbosity = Verbosity.Normal,
Configuration = "Release",
PlatformTarget = PlatformTarget.x64
};
// MSBuildSettings buildSettings = new()
// {
// Verbosity = Verbosity.Normal,
// Configuration = "Release",
// PlatformTarget = PlatformTarget.x64
// };
// Disable openmp so there is no dependency on VCOMP140.dll
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "-DASSIMP_BUILD_TESTS=OFF -DASSIMP_INSTALL=OFF CMakeLists.txt"});
context.MSBuild("assimp/ALL_BUILD.vcxproj", buildSettings);
//context.MSBuild("assimp/ALL_BUILD.vcxproj", buildSettings);
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "--build . --config release"});
context.CopyFile(@"assimp/bin/Release/assimp-vc143-mt.dll", $"{context.ArtifactsDir}/assimp.dll");
}
}

0 comments on commit 868974a

Please sign in to comment.