wmake: use expandPath to expand $PWD to handle symlinks

Resolves patch request https://bugs.openfoam.org/view.php?id=3301
This commit is contained in:
Henry Weller
2019-07-02 11:58:04 +01:00
parent 28ef37d60e
commit 9980357df1

View File

@ -3,7 +3,7 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | Website: https://openfoam.org
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
# \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
@ -395,10 +395,11 @@ fi
#------------------------------------------------------------------------------
objectsDir=$MakeDir/$WM_OPTIONS
if [[ "$PWD" = *"$WM_PROJECT_DIR"* ]]
expandPath "$PWD"
if [[ "$exPath" = *"$WM_PROJECT_DIR"* ]]
then
platformPath=$WM_PROJECT_DIR/platforms/${WM_OPTIONS}
objectsDir=$platformPath${PWD//$WM_PROJECT_DIR/}
objectsDir=$platformPath${exPath//$WM_PROJECT_DIR/}
fi
(