From ceef2d090e774d37555a6c7835bfae5246c59d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sat, 13 Jul 2024 12:34:44 +0200 Subject: [PATCH] Parallel build with CMake. --- src/tasks/modorganizer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tasks/modorganizer.cpp b/src/tasks/modorganizer.cpp index 9ef84d1..d03fc7e 100644 --- a/src/tasks/modorganizer.cpp +++ b/src/tasks/modorganizer.cpp @@ -186,8 +186,12 @@ namespace mob::tasks { // run cmake --build with default target // TODO: handle rebuild by adding `--clean-first` + // TODO: have a way to specify the `--parallel` value - 16 is useful to build + // game_bethesda that has 15 games, so 15 projects run_tool(cmake(cmake::build) .root(source_path()) + .arg("--parallel") + .arg("16") .configuration(mob::config::relwithdebinfo)); // run cmake --install