Skip to content

Commit 159a069

Browse files
compile MLCurlCurl for 1D in cmake (#4331)
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
1 parent 63e03ea commit 159a069

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Src/LinearSolvers/CMakeLists.txt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,12 @@ foreach(D IN LISTS AMReX_SPACEDIM)
5555
endif ()
5656

5757
if (AMReX_LINEAR_SOLVERS_EM)
58-
if (NOT D EQUAL 1 AND AMReX_LINEAR_SOLVERS_EM)
59-
target_sources(amrex_${D}d
60-
PRIVATE
61-
MLMG/AMReX_MLCurlCurl.H
62-
MLMG/AMReX_MLCurlCurl.cpp
63-
MLMG/AMReX_MLCurlCurl_K.H
64-
)
65-
endif ()
58+
target_sources(amrex_${D}d
59+
PRIVATE
60+
MLMG/AMReX_MLCurlCurl.H
61+
MLMG/AMReX_MLCurlCurl.cpp
62+
MLMG/AMReX_MLCurlCurl_K.H
63+
)
6664

6765
target_sources(amrex_${D}d
6866
PRIVATE

0 commit comments

Comments
 (0)