Fix build for scine-xtb (#35386)

This commit is contained in:
Sebastian Ehlert 2023-02-17 13:14:08 +01:00 committed by GitHub
parent 573f7bf4cd
commit 65ee062bf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -67,7 +67,7 @@ def patch(self):
def cmake_args(self): def cmake_args(self):
args = [ args = [
self.define("SCINE_BUILD_TESTS", self.run_tests), self.define("SCINE_BUILD_TESTS", self.run_tests),
self.define("SCINE_BUILD_PYTHON_BINDINGS", "+python" in self.spec), self.define_from_variant("SCINE_BUILD_PYTHON_BINDINGS", "python"),
self.define("SCINE_MARCH", ""), self.define("SCINE_MARCH", ""),
self.define("BOOST_ROOT", self.spec["boost"].prefix), self.define("BOOST_ROOT", self.spec["boost"].prefix),
self.define("BOOST_LIBRARY_DIR", self.spec["boost"].libs.directories[0]), self.define("BOOST_LIBRARY_DIR", self.spec["boost"].libs.directories[0]),

View file

@ -25,6 +25,12 @@ class ScineXtb(CMakePackage):
placement="_dev", placement="_dev",
) )
patch(
"https://raw.githubusercontent.com/conda-forge/scine-xtb-feedstock/4ac2b70/recipe/patches/pkgconfig.patch",
level=1,
sha256="8650abf9dca269f62b60733aabfac0681d9d1cfd721bec728752fb4cbca44452",
)
variant("python", default=False, description="Build Python extension module") variant("python", default=False, description="Build Python extension module")
depends_on("boost+system+filesystem+program_options cxxstd=17 @1.65.0:") depends_on("boost+system+filesystem+program_options cxxstd=17 @1.65.0:")