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:
parent
db23fd055c
commit
2163c3701c
3 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue