Open bharatvaj opened 1 year ago
Thanks! That's an interesting idea, but - TBH - I don't think I've seen precedent for that. Is there an example project that amalgamates CMake scripts? Is there tooling for this, or is it something I'd have to script?
I might have to get back to the feedback from #18 before tackling this.
You can easily get this toolchain via FetchContent
.
include(FetchContent)
FetchContent_Declare(_msvc_toolchain
URL "https://github.com/MarkSchofield/WindowsToolchain/archive/refs/tags/v0.6.0.zip")
FetchContent_MakeAvailable(_msvc_toolchain)
include("${_msvc_toolchain_SOURCE_DIR}/Windows.MSVC.toolchain.cmake")
I don't think copy-pasting code is a good long-term solution.
@MarkSchofield I can't find any to do the amalgamation either. I thought that we would be just cat'ng all cmake files and making it available on release page, but I guess it won't be possible without tackling #18 as you mentioned. What @aminya mentioned seems to be a good way of consuming this toolchain. Maybe it should be added in the "How do I use this?" section as a recommendation? as the cmake link that's already there doesn't cover the distribution part.
Sounds good! I’ll add some documentation on consumption strategies.
Hey, great project first of all! Currently the only possible way to consume the toolchain is by adding this as a submodule to the project or by adding it as a zip. Both have their disadvantages. Is it possible to produce a amalgamated script? A single cmake script file would be a great addition to the source zips that are already provided and it would be much more simpler to curl and reference.