From f83d98a62d0100b8f9b510d7e7b58af81d63af0a Mon Sep 17 00:00:00 2001 From: Brian Van Essen Date: Tue, 3 Mar 2020 09:27:01 -0800 Subject: [PATCH] Protobuf's cmake environment does not properly handle being exported (#15293) and found when using the RelWithDebInfo build type. Change protobuf to only support Release and Debug build types. --- var/spack/repos/builtin/packages/protobuf/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/protobuf/package.py b/var/spack/repos/builtin/packages/protobuf/package.py index 0923d3a961..05702d9fc9 100644 --- a/var/spack/repos/builtin/packages/protobuf/package.py +++ b/var/spack/repos/builtin/packages/protobuf/package.py @@ -39,6 +39,9 @@ class Protobuf(CMakePackage): variant('shared', default=True, description='Enables the build of shared libraries') + variant('build_type', default='Release', + description='The build type to build', + values=('Debug', 'Release')) depends_on('zlib')