Using vcpkg with Non-MSVC Compilers
Can I use vcpkg with other compilers like MinGW or Clang on Windows?
Yes, vcpkg supports integration with various compilers on Windows, including MinGW and Clang. To use vcpkg with a non-MSVC compiler, you need to set the appropriate triplet when installing packages.
For example, to install a package for MinGW-w64, you can use the x64-mingw-static
triplet:
.\vcpkg install spdlog --triplet x64-mingw-static
Make sure to configure your build system or IDE to use the correct compiler and include paths for the installed packages.
Installing vcpkg on Windows
An introduction to C++ package managers, and a step-by-step guide to installing vcpkg on Windows and Visual Studio.