diff options
author | Loïc Pottier <48072795+lpottier@users.noreply.github.com> | 2023-02-09 10:24:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-09 10:24:48 -0800 |
commit | 12f43380b90bfbc3e0f8b1439bb14145b82e9c05 (patch) | |
tree | 2c6c9e34ff5396f6873732b379757b2dc85c74e9 /var | |
parent | ffdc85e8cec99cc2c58d0fe7aa00091e286dad47 (diff) | |
download | spack-12f43380b90bfbc3e0f8b1439bb14145b82e9c05.tar.gz spack-12f43380b90bfbc3e0f8b1439bb14145b82e9c05.tar.bz2 spack-12f43380b90bfbc3e0f8b1439bb14145b82e9c05.tar.xz spack-12f43380b90bfbc3e0f8b1439bb14145b82e9c05.zip |
rabbitmq-c: fix bug when POLT < 1.14 compilation failed (POPT_ARG_ARGV undeclared) (#35403)
Signed-off-by: Loïc Pottier <pottier1@llnl.gov>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/rabbitmq-c/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rabbitmq-c/package.py b/var/spack/repos/builtin/packages/rabbitmq-c/package.py index 3367673d56..477dfa3c43 100644 --- a/var/spack/repos/builtin/packages/rabbitmq-c/package.py +++ b/var/spack/repos/builtin/packages/rabbitmq-c/package.py @@ -22,10 +22,12 @@ class RabbitmqC(CMakePackage): variant("shared", default=True, description="Build shared library") variant("static", default=True, description="Build static library") variant("doc", default=False, description="Build the documentation") + variant("tools", default=False, description="Build the tools") depends_on("cmake@3.12:", type="build") depends_on("openssl@1.1.1:", when="+ssl", type=("build", "link", "run")) depends_on("doxygen", when="+doc", type="build") + depends_on("popt@1.14:", when="+tools", type=("build", "link", "run")) def cmake_args(self): args = [ @@ -35,5 +37,6 @@ class RabbitmqC(CMakePackage): # Tests can only be built against static libraries self.define_from_variant("BUILD_TESTS", "static"), self.define_from_variant("BUILD_API_DOCS", "doc"), + self.define_from_variant("BUILD_TOOLS", "tools"), ] return args |