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