Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
vcpkg-cmake.ps1 286 B
# SPDX-License-Identifier: MIT

#
# Executes CMake with vcpkg toolchain file
#
function vcpkg-cmake {
	Must-Run "Program Files/CMake/bin/cmake.exe" '-DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake'
}

# Use vcpkg-cmake by default
Set-Alias -Name cmake -Value vcpkg-cmake