Don't symlink macOS framework if not building it

If we are not building macOS targets then the framework has not been
created and we not should go ahead with creating symlinks in it. Check
whether the framework directory is there, if it's not then don't attempt
to create symlinks.
This commit is contained in:
Alexei Lozovsky 2020-05-08 10:10:17 +03:00
parent 7df037b599
commit 113509896b
1 changed files with 3 additions and 0 deletions

View File

@ -149,6 +149,9 @@ for SYS in ${ALL_SYSTEMS[@]}; do
if [[ $SYS == "MacOSX" ]]; then
SYSDIR="$FWROOT/$SYS"
FWDIR="$SYSDIR/$FWNAME.framework"
if [[ ! -e "$FWDIR" ]]; then
continue
fi
cd $FWDIR
mkdir "Versions"