Description
I am producing libraries which will be accessible to multiple versions of Visual Studio 2017 & 2019. I've been doing some some research and found these pretty useful links
https://users.rust-lang.org/t/which-visual-studio-version-does-msvc-toolset-use/45098
https://www.reddit.com/r/rust/comments/7jnf58/any_way_to_control_which_version_of_visual_studio/
From theses it seems like the options are
- run vcvars*.bat of the desired target in the command prompt before running cargo build
- running the build in the correct VS Developer command prompts, ex "x64 Command Prompt for VS 2017".
- manually set the LIB & PATH environmental variables to the desired folders
It seems like Option 1 is the best for my team as it would require the least amount of setup for the Windows C++ dev consumers, as the only thing they'd have to do is install Rust and then batch files can take care of the rest.
Those discussions are for rust in general, I'm curious if there are better options specific to CXX, is it worth making the switch to using Bazel based building?