fms: require +pic when +shared (#50130)

This commit is contained in:
Harshula Jayasuriya 2025-05-09 22:15:04 +10:00 committed by GitHub
parent 75faab206b
commit 4a03cac6cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,6 +71,8 @@ class Fms(CMakePackage):
)
variant("shared", description="Build shared libraries", when="@2024.02:", default=False)
# To build a shared/dynamic library, both `pic` and `shared` are required:
requires("+pic", when="+shared", msg="The +shared variant requires +pic")
# What the following patch is providing is available in version 2024.03
# and newer so it is only needed to 2024.02
patch(