message("-- Searching for AMReX install directory at ${AMReX_ROOT}")
find_package(AMReX PATHS ${AMReX_ROOT}/lib/cmake/AMReX/AMReXConfig.cmake)
# Add mpi
find_package(MPI REQUIRED)
target_link_libraries(AMReX::amrex INTERFACE ${MPI_LIBRARYS})
出错在上面的最后一行