Setting library path as lib similar to other rocm packages. (#37568)

* Setting library path as lib similar to other rocm packages.
* Fix style check failure
* Restricting changes to 5.4.3 and above
* Including comgr change
This commit is contained in:
renjithravindrankannath 2023-07-11 03:25:39 +05:30 committed by GitHub
parent db23fd055c
commit 2163c3701c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -161,6 +161,8 @@ class Comgr(CMakePackage):
def cmake_args(self):
args = [self.define("BUILD_TESTING", self.run_tests)]
if self.spec.satisfies("@5.4.3:"):
args.append("-DCMAKE_INSTALL_LIBDIR=lib")
return args
@classmethod

View file

@ -130,7 +130,10 @@ def install_targets(self):
return ["install"]
def cmake_args(self):
return [self.define_from_variant("BUILD_SHARED_LIBS", "shared")]
args = [self.define_from_variant("BUILD_SHARED_LIBS", "shared")]
if self.spec.satisfies("@5.4.3:"):
args.append("-DCMAKE_INSTALL_LIBDIR=lib")
return args
@run_after("install")
@on_package_attributes(run_tests=True)

View file

@ -272,7 +272,8 @@ def cmake_args(self):
# Get the GCC prefix for LLVM.
if self.compiler.name == "gcc":
args.append(self.define("GCC_INSTALL_PREFIX", self.compiler.prefix))
if self.spec.satisfies("@5.4.3:"):
args.append("-DCMAKE_INSTALL_LIBDIR=lib")
return args
@run_after("install")