[vcpkg] Fix bootstrap from out of directory (#10846)

In my last PR, I broke building vcpkg from a directory that isn't the
vcpkg directory; this commit fixes that.
This commit is contained in:
nicole mazzuca 2020-04-15 10:15:12 -07:00 коммит произвёл GitHub
Родитель 22623e3501
Коммит 4db554b937
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -236,11 +236,12 @@ else
fi
# Do the build
buildDir="$vcpkgRootDir/toolsrc/build.rel"
srcDir="$vcpkgRootDir/toolsrc"
buildDir="$srcDir/build.rel"
rm -rf "$buildDir"
mkdir -p "$buildDir"
("$cmakeExe" -B "$buildDir" -S toolsrc -DCMAKE_BUILD_TYPE=Release -G "Ninja" "-DCMAKE_MAKE_PROGRAM=$ninjaExe" "-DBUILD_TESTING=OFF" "-DVCPKG_DEVELOPMENT_WARNINGS=OFF" "-DVCPKG_WARNINGS_AS_ERRORS=OFF" "-DVCPKG_DISABLE_METRICS=$vcpkgDisableMetrics" "-DVCPKG_ALLOW_APPLE_CLANG=$vcpkgAllowAppleClang") || exit 1
("$cmakeExe" -B "$buildDir" -S "$srcDir" -DCMAKE_BUILD_TYPE=Release -G "Ninja" "-DCMAKE_MAKE_PROGRAM=$ninjaExe" "-DBUILD_TESTING=OFF" "-DVCPKG_DEVELOPMENT_WARNINGS=OFF" "-DVCPKG_WARNINGS_AS_ERRORS=OFF" "-DVCPKG_DISABLE_METRICS=$vcpkgDisableMetrics" "-DVCPKG_ALLOW_APPLE_CLANG=$vcpkgAllowAppleClang") || exit 1
("$cmakeExe" --build "$buildDir") || exit 1
rm -rf "$vcpkgRootDir/vcpkg"