Skip to content

Instantly share code, notes, and snippets.

@mcandre
Last active May 1, 2021 02:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcandre/5ceb67ad44f6b974d33bcddedcb16e89 to your computer and use it in GitHub Desktop.
Save mcandre/5ceb67ad44f6b974d33bcddedcb16e89 to your computer and use it in GitHub Desktop.
Windows Install MSVC and clang

Windows Install MSVC and clang

  1. Install Chocolatey.
  2. Launch a PowerShell terminal in administrator mode.
  3. Install visualstudio2019community.
  4. Install the Visual Studio 2019 native C++ Desktop workload with the optional MSVC and clang components included:
PS C:\> choco install --force visualstudio2019-workload-nativedesktop --package-parameters "--includeOptional"
  1. Launch Visual Studio Installer -> Visual Studio 2019 -> Manage -> Uncheck IncrediBuild. Confirm uninstallation of IncrediBuild.
  2. Reboot (Or sign out then sign back in).

cmake Integration

Remove any cmake temporary files.

Re-initialize cmake (MSVC)

PS C:\> cmake .

Re-initialize cmake (clang)

PS C:\> cmake -T ClangCL .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment