Thread (26 messages) flat view 26 messages, 7 authors, 2021-06-22

Re: [PATCH 1/3] cmake: add knob to disable vcpkg

From: Sibi Siddharthan <hidden>
Date: 2021-06-06 04:33:26

On Sun, Jun 6, 2021 at 4:01 AM Matt Rogers [off-list ref] wrote:
On Fri, Jun 4, 2021 at 4:55 PM Sibi Siddharthan
[off-list ref] wrote:
quoted
On Fri, Jun 4, 2021 at 11:13 PM Matthew Rogers via GitGitGadget
[off-list ref] wrote:
quoted
-if(WIN32)
+
+if (WIN32 AND NOT NO_VCPKG)
+       set(USING_VCPKG TRUE)
+else()
+       set(USING_VCPKG FALSE)
+endif()
I think it would be better if we could have an option for this knob.
Maybe like this

option(NO_VCPKG "Don't use vcpkg for obtaining dependencies. Only
applicable to Windows platforms" OFF)
Option would definitely be the better tool to use here, I just didn't
think about
it when originally writing it, so I'll send a reroll with that and the spelling
corrections suggested by Eric Sunshine.  I assume you'd prefer something
with a final form more like:

option(USE_VCPKG "Whether or not to use vcpkg for obtaining dependencies.
Only applicable to Windows platforms" ON)
Yes, this would be better.

Thank You,
Sibi Siddharthan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help