Skip to content

Commit

Permalink
openmpi: fix path env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Dec 13, 2023
1 parent 83f202d commit eea27ca
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions recipes/openmpi/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,18 @@ 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)
self.env_info.MPI_BIN = bin_folder
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")

0 comments on commit eea27ca

Please sign in to comment.