-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[CMake] Exclude swift-syntax targets from 'all' #74733
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] Exclude swift-syntax targets from 'all' #74733
Conversation
swiftlang/swift-syntax#2705 |
swiftlang/swift-syntax#2705 |
78a4f9e
to
b1bca24
Compare
@swift-ci Please smoke test |
b1bca24
to
e80ec92
Compare
@swift-ci Please smoke test |
@swift-ci Please smoke test Windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that property was supposed to be set on the source directory to exclude any targets under that directory from the all
target?
According to https://cmake.org/cmake/help/latest/command/set_property.html
|
Sure, you can set a property on a binary directory after 3.19, but I don't know if that means that the CC @compnerd, do you know? |
Yeah, but it doesn't matter, we want |
We only want swift-syntax libraries as dependencies
82147ae
to
4a39290
Compare
@swift-ci Please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I've confirmed that the Exclusion does get applied back to targets declared in the corresponding source directory too. I wasn't sure that this PR was doing anything, but it looks like it should work.
All targets in
swift-syntax
included viaFetchContent
are for some dependencies. They should not be included inall