Skip to content

Commit

Permalink
spack/package.py: no more variants depending on variants
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed May 30, 2024
1 parent 14d278d commit 4457001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class W3emc(CMakePackage):
description="Set precision (_4/_d/_8 library versions)",
when="@2.10:",
)
variant("shared", default=False, description="Build shared library", when="@2.10: +pic")
variant("shared", default=False, description="Build shared library", when="@2.10:")
variant(
"extradeps",
default=False,
Expand All @@ -46,6 +46,7 @@ class W3emc(CMakePackage):
)

conflicts("+shared +extradeps", msg="Shared library cannot be built with unknown dependencies")
conflicts("+shared ~pic", msg="Shared library requires PIC")

depends_on("bufr", when="@2.10: +bufr")
depends_on("bacio", when="@2.9.2:")
Expand Down

0 comments on commit 4457001

Please sign in to comment.