Thread (14 messages) flat view 14 messages, 3 authors, 2021-05-31

Re: [RFH] CMake: detect if being run via Visual Studio, independent of build generator?

From: Matt Rogers <hidden>
Date: 2021-05-30 00:14:42

(resending because client reconfigured to not use plaintext)

Reading through the documentation, Visual Studio seems to support
CmakePresets.json [1] for handling configuration of cmake options.  It
might be worth it to keep the defaults as is. But provide a variable
for forcing vcpkg and a CMakePresets.json for Visual Studio
(and other such tools) to use.

This is nice since Visual Studio users wouldn't need to rely on the
slower Visual Studio * generators to run their builds, while leaving
non Visual Studio users still able to easily run builds.  So maybe there's
a way for everyone to be happy?

1: https://devblogs.microsoft.com/cppblog/cmake-presets-integration-in-visual-studio-and-visual-studio-code/

-- 
Matthew Rogers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help