wmake: Fix removal of lnInclude during build of mpi-dependent libraries

This commit is contained in:
Will Bainbridge
2024-05-21 21:08:21 +01:00
parent 0933bd106f
commit 81dd264963
2 changed files with 13 additions and 7 deletions

View File

@ -44,7 +44,7 @@ wmakeMpiLib()
WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"
whichmpi="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$FOAM_MPI"
whichtarget="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$version"
[ -e "$whichmpi" -a -e "$whichtarget" ] || wclean $libName
[ -e "$whichmpi" -a -e "$whichtarget" ] || wclean -noLnInclude $libName
echo "wmake $targetType $libName"
wmake $targetType $libName
touch "$whichmpi" "$whichtarget"