diff --git a/profile.ps1 b/profile.ps1 index 160b847..7feaee6 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -85,3 +85,11 @@ Write-Host -NoNewLine "$([char]0x1b)[6 q" # Remove these aliases to PowerShell builtins which clobber the actaul exes. Remove-Item alias:curl Remove-Item alias:wget + +# Set environment variables +# TODO: Wrap Enter-VsDevShell to also set these? +if ((Get-Command cmake.exe -ErrorAction SilentlyContinue).Source) { + $env:CMAKE_GENERATOR = 'Ninja' + $env:CMAKE_C_COMPILER_LAUNCHER = 'cmake.exe' + $env:CMAKE_CXX_COMPILER_LAUNCHER = 'cmake.exe' +}