Re: [RFH] CMake: detect if being run via Visual Studio, independent of build generator?
- From
Sibi Siddharthan <sibisiddharthan.github@gmail.com>
- Date
- May 30, 2021, 14:29 UTC
- Message-ID
- <CAKiG+9WwRHz-5JDPe6KL763kVfRP7vX5HgtDMiX-S1Je5+oWfg@mail.gmail.com>
- In-Reply-To
- <CAOjrSZuzgBs8camWdUjEU+JOjRYwv3MVjRgnyW50pchq6rpYsQ@mail.gmail.com>
On Sun, May 30, 2021 at 6:52 PM Matt Rogers <mattr94@gmail.com> wrote:
Show 8 quoted lines
> > I think the best middle of the line solution would be to just provide a manual > knob for turning vcpkg support on/off here and offer configurations in > CMakePresets.json for both situations. The only downside here is that I believe > a lot of IDE's are aggressive about running the cmake configuration step and may > try to install vcpkg even if it is unnecessary. But automatic > generation can generally > be turned off by users I guess.
I agree. I would suggest vcpkg should be used by default for Windows platforms. This way IDE's won't complain and command line users can straight up disable this behaviour.
Thank You, Sibi Siddharthan