From eea27ca6cf5d8dd0e96cf448b3db3224bdfd8316 Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Thu, 14 Dec 2023 00:31:37 +0200 Subject: [PATCH] openmpi: fix path env vars --- recipes/openmpi/all/conanfile.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/recipes/openmpi/all/conanfile.py b/recipes/openmpi/all/conanfile.py index c5aa687408143..2843c22f4c577 100644 --- a/recipes/openmpi/all/conanfile.py +++ b/recipes/openmpi/all/conanfile.py @@ -167,11 +167,12 @@ def package_info(self): self.cpp_info.system_libs = ["dl", "pthread", "rt", "util"] bin_folder = os.path.join(self.package_folder, "bin") - self.runenv.define_path("MPI_BIN", bin_folder) - self.runenv.define_path("MPI_HOME", self.package_folder) - self.runenv.define_path("OPAL_PREFIX", self.package_folder) - self.runenv.define_path("OPAL_EXEC_PREFIX", self.package_folder) - self.runenv.define_path("OPAL_DATAROOTDIR", os.path.join(self.package_folder, "res")) + self.runenv_info.define_path("MPI_BIN", bin_folder) + self.runenv_info.define_path("MPI_HOME", self.package_folder) + self.runenv_info.define_path("OPAL_PREFIX", self.package_folder) + self.runenv_info.define_path("OPAL_EXEC_PREFIX", self.package_folder) + self.runenv_info.define_path("OPAL_DATADIR", os.path.join(self.package_folder, "res")) + self.runenv_info.define_path("OPAL_DATAROOTDIR", os.path.join(self.package_folder, "res")) # TODO: Legacy, to be removed on Conan 2.0 self.env_info.PATH.append(bin_folder) @@ -179,4 +180,5 @@ def package_info(self): self.env_info.MPI_HOME = self.package_folder self.env_info.OPAL_PREFIX = self.package_folder self.env_info.OPAL_EXEC_PREFIX = self.package_folder + self.env_info.OPAL_DATADIR = os.path.join(self.package_folder, "res") self.env_info.OPAL_DATAROOTDIR = os.path.join(self.package_folder, "res")