Skip to content

Commit

Permalink
Fix: Pre-Installed AMReX w/ CUDA
Browse files Browse the repository at this point in the history
Fix CMake language activation with pre-installed AMReX
using the CUDA backend.
  • Loading branch information
ax3l committed Feb 4, 2024
1 parent 4fba56c commit 71a6ee0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/dependencies/AMReX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ macro(find_amrex)
# https://amrex-codes.github.io/amrex/docs_html/BuildingAMReX.html#importing-amrex-into-your-cmake-project
find_package(AMReX 24.02 CONFIG REQUIRED COMPONENTS PARTICLES PIC)
message(STATUS "AMReX: Found version '${AMReX_VERSION}'")

if(AMReX_GPU_BACKEND STREQUAL CUDA)
enable_language(CUDA)
endif()
endif()
endmacro()

Expand Down

0 comments on commit 71a6ee0

Please sign in to comment.