Skip to content
Snippets Groups Projects
Commit af5c04ef authored by calrama's avatar calrama
Browse files

[windows-1809] fix powershell profile

parent c1f074ff
No related branches found
No related tags found
No related merge requests found
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# Executes CMake with vcpkg toolchain file
#
function Vcpkg-CMake {
if ($args[0] -eq "--build") {
Must-Run "/Program Files/CMake/bin/cmake.exe" $args
} else {
Must-Run "/Program Files/CMake/bin/cmake.exe" '-DCMAKE_TOOLCHAIN_FILE=${venv:CMAKE_TOOLCHAIN_FILE}' "-DVCPKG_TARGET_TRIPLET=${env:VCPKG_TARGET_TRIPLET}" $args
}
}
# Use Vcpkg-CMake by default
Set-Alias -Name cmake -Value Vcpkg-CMake
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment