Skip to content

Commit

Permalink
Try to fix linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Aug 15, 2024
1 parent 2f0dded commit 30548f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/BuildLinuxTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public override void Run(BuildContext context)
Directory.CreateDirectory(buildWorkingDir);
// Path relative to the buildWorkingDir
var cmakeListsPath = System.IO.Path.Combine("..", "crunch", "CMakeLists.txt");
context.ReplaceTextInFiles("../crunch/crunch/CMakeLists.txt", "target_link_libraries(${CRUNCH_EXE_NAME} ${CRUNCH_LIBRARY_NAME} ${CMAKE_THREAD_LIBS_INIT})", "target_link_libraries(${CRUNCH_EXE_NAME} PRIVATE ${CRUNCH_LIBRARY_NAME} ${CMAKE_THREAD_LIBS_INIT})");
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = $"-DCMAKE_BUILD_TYPE=Release -DBUILD_CRUNCH=ON -DBUILD_SHARED_LIBCRN=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_EXAMPLES=OFF {cmakeListsPath}" });
context.StartProcess("make", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "" });
var files = Directory.GetFiles(buildWorkingDir, "crunch", SearchOption.TopDirectoryOnly);
Expand Down

0 comments on commit 30548f2

Please sign in to comment.