fixed cp2k libcp2k.pc (#32349)

Co-authored-by: Prasanthi <pdonthir@amd.com>
This commit is contained in:
AMD Toolchain Support 2022-08-26 00:31:02 +05:30 committed by GitHub
parent c2291f7eb3
commit 6fb13c0fc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -761,6 +761,7 @@ def fix_package_config(self):
In case such approach causes issues in the future, it might be necessary
to generate and override entire libcp2k.pc.
"""
if self.spec.satisfies("@9.1:"):
with open(join_path(self.prefix.lib.pkgconfig, "libcp2k.pc"), "r+") as handle:
content = handle.read().rstrip()