spack/var/spack/repos/builtin.mock/packages/cmake-conditional-variants-test/package.py
Harmen Stoppels c5aee4d9b4
define_from_variant: return an empty string for non-existing variants (#27503)
This permits to use conditional variants without a lot of boilerplate.
2021-11-19 14:10:00 +01:00

10 lines
372 B
Python

# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
class CmakeConditionalVariantsTest(CMakePackage):
homepage = "https://dev.null"
version('1.0')
variant('example', default=True, description='nope', when='@2.0:')