From dadb7e2bba9e55923649428e74f466daee6a2be3 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 29 Oct 2024 10:00:44 +0100 Subject: [PATCH] Don't build tests if they are not going to run for k4Clue --- packages/k4clue/package.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/k4clue/package.py b/packages/k4clue/package.py index 12b90897..19e2599e 100644 --- a/packages/k4clue/package.py +++ b/packages/k4clue/package.py @@ -55,10 +55,12 @@ class K4clue(CMakePackage, Ilcsoftpackage): depends_on("k4marlinwrapper", type="test") def cmake_args(self): - args = [] - args.append( - f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}" - ) + args = [ + self.define( + "CMAKE_CXX_STANDARD", self.spec["root"].variants["cxxstd"].value + ), + self.define("BUILD_TESTING", self.run_tests), + ] return args def setup_run_environment(self, env):