Fix build for scine-xtb (#35386)
This commit is contained in:
parent
573f7bf4cd
commit
65ee062bf6
2 changed files with 7 additions and 1 deletions
|
@ -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]),
|
||||||
|
|
|
@ -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:")
|
||||||
|
|
Loading…
Reference in a new issue