gxsview: making sure -lstdc++fs is added (#47703)

Co-authored-by: Olivier Cessenat <cessenat@jliana.magic>
This commit is contained in:
Olivier Cessenat 2025-01-13 13:01:03 +01:00 committed by GitHub
parent b746d4596a
commit 93747c5e24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ class Gxsview(QMakePackage):
depends_on("vtk@9:+qt+opengl2", when="@2024.03.15:")
conflicts("%gcc@:7.2.0", msg="Requires C++17 compiler support") # need C++17 standard
conflicts("qt@6:", msg="Qt 6 support is not yet achieved")
conflicts("qt-base@6:", msg="Qt 6 support is not yet achieved") # required for clingo
conflicts("^qt-base@6:", msg="Qt 6 support is not yet achieved") # required for clingo
patch("vtk9.patch", when="^vtk@9:")
# gcc11 compilation rule for std::numeric_limits,
@ -75,13 +75,13 @@ def qmake_args(self):
]
)
# Below to avoid undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
if self.spec.satisfies("%gcc@8.0:8.9") or self.spec.satisfies("%fj"):
if self.spec.satisfies("%gcc@:8.9") or self.spec.satisfies("%fj"):
if self.spec.satisfies("^vtk@9:"):
fic = "vtk9.pri"
else:
fic = "vtk8.pri"
with open(fic, "a") as fh:
fh.write("-lstdc++fs\n")
fh.write("\nLIBS += -lstdc++fs\n")
return args
def install(self, spec, prefix):