fmt: simplify +pic (#48766)

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
This commit is contained in:
Juan Miguel Carceller 2025-01-29 22:02:40 +01:00 committed by GitHub
parent 8d3a733b77
commit d50eba40d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,12 +118,7 @@ def cmake_args(self):
args.append("-DBUILD_SHARED_LIBS=ON")
if spec.satisfies("+pic"):
args.extend(
[
"-DCMAKE_C_FLAGS={0}".format(self.compiler.cc_pic_flag),
"-DCMAKE_CXX_FLAGS={0}".format(self.compiler.cxx_pic_flag),
]
)
args.append(self.define("CMAKE_POSITION_INDEPENDENT_CODE", True))
args.append("-DCMAKE_CXX_STANDARD={0}".format(spec.variants["cxxstd"].value))
# Require standard at configure time to guarantee the