fixed cp2k libcp2k.pc (#32349)
Co-authored-by: Prasanthi <pdonthir@amd.com>
This commit is contained in:
parent
c2291f7eb3
commit
6fb13c0fc5
@ -761,20 +761,21 @@ def fix_package_config(self):
|
|||||||
In case such approach causes issues in the future, it might be necessary
|
In case such approach causes issues in the future, it might be necessary
|
||||||
to generate and override entire libcp2k.pc.
|
to generate and override entire libcp2k.pc.
|
||||||
"""
|
"""
|
||||||
with open(join_path(self.prefix.lib.pkgconfig, "libcp2k.pc"), "r+") as handle:
|
if self.spec.satisfies("@9.1:"):
|
||||||
content = handle.read().rstrip()
|
with open(join_path(self.prefix.lib.pkgconfig, "libcp2k.pc"), "r+") as handle:
|
||||||
|
content = handle.read().rstrip()
|
||||||
|
|
||||||
content += " " + self.spec["blas"].libs.ld_flags
|
content += " " + self.spec["blas"].libs.ld_flags
|
||||||
content += " " + self.spec["lapack"].libs.ld_flags
|
content += " " + self.spec["lapack"].libs.ld_flags
|
||||||
content += " " + self.spec["fftw-api"].libs.ld_flags
|
content += " " + self.spec["fftw-api"].libs.ld_flags
|
||||||
|
|
||||||
if "^fftw+openmp" in self.spec:
|
if "^fftw+openmp" in self.spec:
|
||||||
content += " -lfftw3_omp"
|
content += " -lfftw3_omp"
|
||||||
|
|
||||||
content += "\n"
|
content += "\n"
|
||||||
|
|
||||||
handle.seek(0)
|
handle.seek(0)
|
||||||
handle.write(content)
|
handle.write(content)
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
data_dir = join_path(self.stage.source_path, "data")
|
data_dir = join_path(self.stage.source_path, "data")
|
||||||
|
Loading…
Reference in New Issue
Block a user