warpx: add libs attribute to fix build on aarch64 (#22072)

Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
This commit is contained in:
Tomoyasu Nojiri 2021-03-10 18:13:44 +09:00 committed by GitHub
parent 8c613fadf0
commit 8ff898a95e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,7 @@ def cmake_args(self):
args = [ args = [
'-DBUILD_SHARED_LIBS:BOOL={0}'.format( '-DBUILD_SHARED_LIBS:BOOL={0}'.format(
'ON' if '+shared' in spec else 'OFF'), 'ON' if '+shared' in spec else 'OFF'),
'-DCMAKE_INSTALL_LIBDIR=lib',
# variants # variants
'-DWarpX_APP:BOOL={0}'.format( '-DWarpX_APP:BOOL={0}'.format(
'ON' if '+app' in spec else 'OFF'), 'ON' if '+app' in spec else 'OFF'),
@ -123,3 +124,12 @@ def cmake_args(self):
] ]
return args return args
@property
def libs(self):
libsuffix = {'2': '2d', '3': '3d', 'rz': 'rz'}
dims = self.spec.variants['dims'].value
return find_libraries(
['libwarpx.' + libsuffix[dims]], root=self.prefix, recursive=True,
shared=True
)