Skip to content

Commit

Permalink
compile MLCurlCurl for 1D in cmake (#4331)
Browse files Browse the repository at this point in the history
CurlCurl for 1D was added in #4242 
It compiles with make, and this PR ensures that it compiles with cmake
option by removing optional compilation that did not include 1D for
CurlCurl
  • Loading branch information
RevathiJambunathan authored Feb 13, 2025
1 parent 63e03ea commit 159a069
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Src/LinearSolvers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,12 @@ foreach(D IN LISTS AMReX_SPACEDIM)
endif ()

if (AMReX_LINEAR_SOLVERS_EM)
if (NOT D EQUAL 1 AND AMReX_LINEAR_SOLVERS_EM)
target_sources(amrex_${D}d
PRIVATE
MLMG/AMReX_MLCurlCurl.H
MLMG/AMReX_MLCurlCurl.cpp
MLMG/AMReX_MLCurlCurl_K.H
)
endif ()
target_sources(amrex_${D}d
PRIVATE
MLMG/AMReX_MLCurlCurl.H
MLMG/AMReX_MLCurlCurl.cpp
MLMG/AMReX_MLCurlCurl_K.H
)

target_sources(amrex_${D}d
PRIVATE
Expand Down

0 comments on commit 159a069

Please sign in to comment.