Skip to content

Commit

Permalink
Don't build tests if they are not going to run for k4Clue
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 29, 2024
1 parent d0a5a8d commit dadb7e2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/k4clue/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit dadb7e2

Please sign in to comment.