From 9555928c99a6df1472dae105002febcd716d10b6 Mon Sep 17 00:00:00 2001 From: ggulgulia Date: Tue, 27 Sep 2022 08:09:33 +0200 Subject: [PATCH 1/3] use conan fortran with build_lapack option --- recipes/openblas/all/conanfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/openblas/all/conanfile.py b/recipes/openblas/all/conanfile.py index 01041ab44fd28..6c25f82fdfa3b 100644 --- a/recipes/openblas/all/conanfile.py +++ b/recipes/openblas/all/conanfile.py @@ -50,6 +50,10 @@ def configure(self): if self.options.shared: del self.options.fPIC + def requirements(self): + if self.options.build_lapack: + self.requires("gfortran/10.2") + def validate(self): if hasattr(self, "settings_build") and tools.cross_building(self, skip_x64_x86=True): raise ConanInvalidConfiguration("Cross-building not implemented") From 537e4c988f5be008634285cb6c612119792d231b Mon Sep 17 00:00:00 2001 From: ggulgulia Date: Tue, 27 Sep 2022 14:22:37 +0200 Subject: [PATCH 2/3] use fortran as build requirements --- recipes/openblas/all/conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/openblas/all/conanfile.py b/recipes/openblas/all/conanfile.py index 6c25f82fdfa3b..6d41bb64a4462 100644 --- a/recipes/openblas/all/conanfile.py +++ b/recipes/openblas/all/conanfile.py @@ -50,7 +50,7 @@ def configure(self): if self.options.shared: del self.options.fPIC - def requirements(self): + def build_requirements(self): if self.options.build_lapack: self.requires("gfortran/10.2") From 24bd4ca40ccab4648e417c071ab958801b541031 Mon Sep 17 00:00:00 2001 From: Gajendra <9218964+ggulgulia@users.noreply.github.com> Date: Tue, 27 Sep 2022 17:35:43 +0200 Subject: [PATCH 3/3] use tools_requires for build requirement Co-authored-by: Uilian Ries --- recipes/openblas/all/conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/openblas/all/conanfile.py b/recipes/openblas/all/conanfile.py index 6d41bb64a4462..347bf7c7ddc66 100644 --- a/recipes/openblas/all/conanfile.py +++ b/recipes/openblas/all/conanfile.py @@ -52,7 +52,7 @@ def configure(self): def build_requirements(self): if self.options.build_lapack: - self.requires("gfortran/10.2") + self.tool_requires("gfortran/10.2") def validate(self): if hasattr(self, "settings_build") and tools.cross_building(self, skip_x64_x86=True):