git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Philip Oakley <philipoakley@iee.email>
To: Matt Rogers <mattr94@gmail.com>,
	Sibi Siddharthan <sibisiddharthan.github@gmail.com>
Cc: Git List <git@vger.kernel.org>,
	Johannes Schindelin <johannes.schindelin@gmx.de>,
	Danh Doan <congdanhqx@gmail.com>
Subject: Re: [RFH] CMake: detect if being run via Visual Studio, independent of build generator?
Date: Sun, 30 May 2021 11:52:47 +0100	[thread overview]
Message-ID: <953d685c-3c89-7377-ed49-b79fb4e0acb5@iee.email> (raw)
In-Reply-To: <CAOjrSZtRH-sqh8RJm3W00dUWTbT-xcpzDWCQFt=3CNaVnOyVWQ@mail.gmail.com>

quick thoughts..
On 30/05/2021 01:14, Matt Rogers wrote:
> (resending because client reconfigured to not use plaintext)
;-)
>
> Reading through the documentation, Visual Studio seems to support
> CmakePresets.json [1]
Is that stored with the project, or with the VS installation (still to
read [1] beyond a v quick scan..)
>  for handling configuration of cmake options.  It
> might be worth it to keep the defaults as is.

Given that it's just changed, do you mean ' keep it as new - Ninja' or
'keep it as old - VS generator'..

>  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, 
[implies, keep as Ninja, I think ?]
> while leaving
> non Visual Studio users still able to easily run builds.  So maybe there's
> a way for everyone to be happy?
I'm hoping to ensure the project builds 'straight out of the tin' [mixed
metaphor 2,3], for those who are cross disciplinary (such as myself;-)

I'll have a good look at [1], thanks.

Philip

>
> 1: https://devblogs.microsoft.com/cppblog/cmake-presets-integration-in-visual-studio-and-visual-studio-code/
>
[2] https://en.wikipedia.org/wiki/Out_of_the_box_(feature)
[3] https://www.ronseal.com/the-ronseal-phrase/ (UK)

  reply	other threads:[~2021-05-30 10:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-29 15:00 [RFH] CMake: detect if being run via Visual Studio, independent of build generator? Philip Oakley
2021-05-29 15:49 ` Matt Rogers
2021-05-29 16:25   ` Philip Oakley
2021-05-29 18:33     ` Sibi Siddharthan
2021-05-29 20:31       ` Philip Oakley
2021-05-29 22:14         ` Sibi Siddharthan
2021-05-30  0:14           ` Matt Rogers
2021-05-30 10:52             ` Philip Oakley [this message]
2021-05-30 13:22               ` Matt Rogers
2021-05-30 14:29                 ` Sibi Siddharthan
2021-05-30 15:24                   ` Philip Oakley
2021-05-30 22:26                     ` Philip Oakley
2021-05-31  0:01                       ` Matt Rogers
2021-05-31 17:12                         ` Philip Oakley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=953d685c-3c89-7377-ed49-b79fb4e0acb5@iee.email \
    --to=philipoakley@iee.email \
    --cc=congdanhqx@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=johannes.schindelin@gmx.de \
    --cc=mattr94@gmail.com \
    --cc=sibisiddharthan.github@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).