Write-Host"Found vcpkg in VCPKG_ROOT: $vcpkg_path"
}
elseif(Test-Path"${env:WORKSPACE}\vcpkg"){
$vcpkg_path="${env:WORKSPACE}\vcpkg"
Write-Host"Found vcpkg in WORKSPACE\vcpkg: $vcpkg_path"
}
else{
Write-Host"Skipping vcpkg-enabled builds because the VCPKG_ROOT environment variable is not defined, using self-distributed libs`n"-ForegroundColorYellow
}
if($null-eq$env:VCPKG_DEFAULT_TRIPLET){
Write-Host"No default triplet has been set-up for vcpkg. Defaulting to x64-windows`n"-ForegroundColorYellow
Write-Host"Unable to find CUDA, if necessary please install it or define a CUDA_PATH env variable pointing to the install folder`n"-ForegroundColorYellow
cmake-G"Visual Studio 15 2017"-T"host=x64"-A"x64""-DCMAKE_TOOLCHAIN_FILE=$vcpkg_path\scripts\buildsystems\vcpkg.cmake""-DVCPKG_TARGET_TRIPLET=$vcpkg_triplet""-DCMAKE_BUILD_TYPE=Release"$shared_lib..
cmake-G"Visual Studio 15 2017"-T"host=x64"-A"x64""-DCMAKE_TOOLCHAIN_FILE=$vcpkg_path\scripts\buildsystems\vcpkg.cmake""-DVCPKG_TARGET_TRIPLET=$vcpkg_triplet""-DCMAKE_BUILD_TYPE=Debug"$shared_lib..
# if you want to manually force this case, remove VCPKG_ROOT env variable and remember to use "vcpkg integrate remove" in case you had enabled user-wide vcpkg integration