VC++ install, vcpkg
English installer "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" --locale=english https://github.com/Microsoft/vcpkg 更新 vcpkg remove --outdated vcpkg install <list of libraries you want available by default> See .\vcpkg help triplet for all supported targets. 只build release,可在triplet內加入 set(VCPKG_BUILD_TYPE release) 加compiler flag build lib時 VCPKG_C_FLAGS VCPKG_CXX_FLAGS https://github.com/Microsoft/vcpkg/issues/3106 安裝可加參數 cmake -E env CFLAGS="-MP -Oi -arch:AVX2" CXXFLAGS="-MP -Oi -arch:AVX2" cmake 使用lib方法 https://github.com/Microsoft/vcpkg/blob/master/docs/users/integration.md cmake .. -DCMAKE_TOOLCHAIN_FILE=.../vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x86-windows-static https://github.com/kvirc/KVIrc/issues/2400#issuecomment-421496054 https://blogs.msdn.microsoft.com/vcblog/2016/11/01/vcpkg-updates-static-linking-is-now-available/ triplet的customization https://github.com/Microsoft/vcpk...