File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -152,11 +152,6 @@ if("OMPG" IN_LIST switches)
152
152
target_link_libraries (ww3_lib PUBLIC OpenMP::OpenMP_Fortran)
153
153
endif ()
154
154
155
- if ("MPI" IN_LIST switches)
156
- find_package (MPI REQUIRED COMPONENTS Fortran)
157
- target_link_libraries (ww3_lib PUBLIC MPI::MPI_Fortran)
158
- endif ()
159
-
160
155
# Handle PDLIB, SCRIP, SCRIPNC build files directly instead of through configuration file
161
156
if ("PDLIB" IN_LIST switches)
162
157
if ("SCOTCH" IN_LIST switches)
@@ -172,6 +167,11 @@ elseif("METIS" IN_LIST switches)
172
167
endif ()
173
168
endif ()
174
169
170
+ if ("MPI" IN_LIST switches)
171
+ find_package (MPI REQUIRED COMPONENTS Fortran)
172
+ target_link_libraries (ww3_lib PUBLIC MPI::MPI_Fortran)
173
+ endif ()
174
+
175
175
if ("SCRIP" IN_LIST switches)
176
176
target_sources (ww3_lib PRIVATE ${scrip_src} )
177
177
endif ()
You can’t perform that action at this time.
0 commit comments