cmake: option to disable install & drop
curlu target when unused
With the default configuration on this repository:
I have this repository embedded in an experimental project that uses curl as a submodule.
The initial example is what I am using to lock the options I need in place before recursing into this repository’s scripts.
For instance, if I wanted to include this project’s tests as part of my project testing, I would conditionally switch that variable to
I added the conditional BUILD_TESTING statement around
That is a miscommunication on my end, the above settings are only with the extra guards in place.
What do you mean by 'project' in this context?
The reason I'm insisting is because this test:
when built, does not produce a
I'm looking for an example which builds
I see what you are saying. By ‘project’ I am referring to visual studio project files.
Even if it is not referenced in the actual build, the project file is still generated. In turn, it is loaded in the visual studio solution.
By default, the ALL_BUILD project will build both it and either
The purpose of this patch is to add the option to toggle off the installation projects in the generated solution. With the
It allows a strict filter to only generate and include the core libraries needed to build, link and use curl.
Thanks for explaining!
If I got it correctly this patch does these two things:
Would you mind updating the PR message to clarify?
This patch makes the following changes: - adds the option `CURL_DISABLE_INSTALL` - to disable 'install' targets. - Removes the target `curlu` when the option `BUILD_TESTING` is set to `OFF` - to prevent it from being loaded in Visual Studio. Closes curl#12287