From a69c5af786027d270f0769d21fd1af41971ea0f5 Mon Sep 17 00:00:00 2001 From: Oliver Perks Date: Tue, 30 Jan 2024 05:10:48 -0800 Subject: [PATCH] Adding support for CMake + Ninja Previously the CMake config would just run 'make'. This commit runs 'cmake --build .' which enables you to specify different build systems within cmake. Specifically this is useful for Ninja, using the 'cmake -GNinja' flag. If no build system is set it will fall back to make. --- reframe/core/buildsystems.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reframe/core/buildsystems.py b/reframe/core/buildsystems.py index 42c996775c..a945b4a0b4 100644 --- a/reframe/core/buildsystems.py +++ b/reframe/core/buildsystems.py @@ -584,7 +584,7 @@ def emit_build_commands(self, environ): else: cmake_cmd += ['.'] - make_cmd = ['make -j'] + make_cmd = ['cmake --build . -j'] if self.max_concurrency is not None: make_cmd += [str(self.max_concurrency)]