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
|
||||
# \\ / 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
|
||||
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user