From 741652caa105edcc0414d6a8f0d94bd4ba20a736 Mon Sep 17 00:00:00 2001 From: "Victor A. P. Magri" <50467563+victorapm@users.noreply.github.com> Date: Mon, 25 Nov 2024 12:26:53 -0500 Subject: caliper: add "tools" variant (#47779) --- var/spack/repos/builtin/packages/caliper/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/caliper/package.py b/var/spack/repos/builtin/packages/caliper/package.py index ad06a5e242..5cf3376f0d 100644 --- a/var/spack/repos/builtin/packages/caliper/package.py +++ b/var/spack/repos/builtin/packages/caliper/package.py @@ -101,6 +101,8 @@ class Caliper(CachedCMakePackage, CudaPackage, ROCmPackage): variant("vtune", default=False, description="Enable Intel Vtune support") variant("kokkos", default=True, when="@2.3.0:", description="Enable Kokkos profiling support") variant("tests", default=False, description="Enable tests") + variant("tools", default=True, description="Enable tools") + # TODO change the 'when' argument for the next release of Caliper variant("python", default=False, when="@master", description="Build Python bindings") @@ -156,6 +158,7 @@ class Caliper(CachedCMakePackage, CudaPackage, ROCmPackage): entries.append(cmake_cache_option("BUILD_SHARED_LIBS", spec.satisfies("+shared"))) entries.append(cmake_cache_option("BUILD_TESTING", spec.satisfies("+tests"))) + entries.append(cmake_cache_option("WITH_TOOLS", spec.satisfies("+tools"))) entries.append(cmake_cache_option("BUILD_DOCS", False)) entries.append(cmake_cache_path("PYTHON_EXECUTABLE", spec["python"].command.path)) -- cgit v1.2.3-70-g09d2