Skip to content

Commit

Permalink
caliper: add "tools" variant (spack#47779)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorapm authored Nov 25, 2024
1 parent 8e91430 commit 741652c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions var/spack/repos/builtin/packages/caliper/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -156,6 +158,7 @@ def initconfig_compiler_entries(self):

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))

Expand Down

0 comments on commit 741652c

Please sign in to comment.