Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cmake/dependencies/ABLASTR.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ macro(find_ablastr)

# shared libs, i.e. for Python bindings, need relocatable code
if(ImpactX_PYTHON OR BUILD_SHARED_LIBS)
set(AMReX_PIC ON CACHE INTERNAL
"Build AMReX with position independent code")
set(ABLASTR_POSITION_INDEPENDENT_CODE ON CACHE INTERNAL
"Build ABLASTR with position independent code")
# Normal variables (CMP0077 NEW) apply these requirements without
# writing cache entries that outlive the requirement itself.
set(AMReX_PIC ON)
set(ABLASTR_POSITION_INDEPENDENT_CODE ON)

# WE NEED AMReX AS SHARED LIB, OTHERWISE WE CANNOT SHARE ITS GLOBALS
# BETWEEN MULTIPLE PYTHON MODULES
# TODO this is likely an export/symbol hiding issue that we could
# alleviate later on
set(AMReX_BUILD_SHARED_LIBS ON CACHE BOOL "Build AMReX shared library" FORCE)
set(AMReX_BUILD_SHARED_LIBS ON)
endif()

if(ImpactX_ablastr_src)
Expand Down
Loading