-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow building multiple targets at once #115
Comments
Perhaps each call to |
|
Er what I mean is that |
Ah yes, you are right about the output directory. That makes me hopeful for
this issue since it seems doable without a public API change. Internally
using a vector seems like the right approach to me.
…On Wed, Apr 28, 2021 at 9:29 AM Alex Crichton ***@***.***> wrote:
Er what I mean is that cmake_target internally could become a Vec whereas
it's now an Option. We could then pass all those down all at once when
calling cmake to avoid having to call cmake multiple times. There could
be some sort of alternate API or something or other for building to learn
about all the paths if you'd like multiple returned (although I though the
return value was just the output directory, not the actual artifacts...)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIIKIHKD5AM2M5SE3EFVPDTLAZXTANCNFSM43VRJE2Q>
.
|
@alexcrichton are you open to PRs for this issue using the vector approach? |
indeed! |
The current API only allows specifying a single build target. However, the
cmake
CLI allows specifying multiple targets.It would be convenient to allow this in
cmake-rs
. Callingbuild_target("target1 target2")
does not work with thebuild()
API which only returns a single path.The workaround is to invoke cmake once for each target, but this is slow.
The text was updated successfully, but these errors were encountered: