Skip to content
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

[CMake][NFC] Support cmake install components for targets with multiple target files #26193

Merged
merged 1 commit into from
Jul 18, 2019

Conversation

bulbazord
Copy link
Contributor

The major change here is a follow up to #24168, in which I added support to the build system to use cmake's component system for installation. The only major change is making sure that the installation rules are correct for installing targets with multiple output files.

When installing a target, you could have multiple target files with
different rules for installation. For example, you can specify rules for
RUNTIME files (binaries, dlls), LIBRARY files (dylibs, shared objects), ARCHIVE files, etc.
Each of these can take several options, e.g. DESTINATION. When you want to specify
the install component for a target, each of the different target file
rules need to have their own COMPONENT field. If not, they end up as
"Unspecified" which means they will not get installed with the
associated swift component.

cc @compnerd @gottesmm @Rostepher

…rget files

When installing a target, you could have multiple target files with
different rules for installation. For example, you can specify rules for
`RUNTIME` files, `LIBRARY` files, `ARCHIVE` files, etc. Each of these
can take several options, e.g. `DESTINATION`. When you want to specify
the install component for a target, each of the different target file
rules need to have their own `COMPONENT` field. If not, they end up as
"Unspecified" which means they will not get installed with the
associated swift component.
@bulbazord
Copy link
Contributor Author

@swift-ci please test

@compnerd
Copy link
Member

LGTM

@compnerd compnerd merged commit 647fd3e into swiftlang:master Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants