-
-
Notifications
You must be signed in to change notification settings - Fork 583
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: Alleviate target name clashes, visibility, and grouping. #1658
base: master
Are you sure you want to change the base?
Conversation
The thing GODOT_ENABLE_TESTING somewhat clashes with my PR #1650, I also guard |
Indeed it does clash, perhaps it needs its own PR, if either of our PR's get merged, the other can rebase and fix. I thought about splitting this into three parts, but I dont know how fine grained PR's should be. |
I've reverted my changes for now. yours seem to better in terms of naming, description of PR and placement of option. |
9d74b0e
to
db37472
Compare
1541901
to
c6af953
Compare
rebased onto #1651 |
Thanks! This makes sense in general: users of godot-cpp don't want to end up with a target for godot-cpp internal tests. Seems to be failing CI at the moment, though |
Still getting used to re-basing I think something was lost. I will fix it soon. |
89d9038
to
611c951
Compare
Thanks! Unfortunately, looks like this needs another rebase for conflicts. Also, I think it would be nice to update the |
e497679
to
78d71c2
Compare
So I went and updated the documentation as asked. While doing so I really hated that I previously introduced the TEST_TARGET option to control which target the test would link against. So I made it go away, now all the variants are generated with name |
dd32f97
to
28ed5df
Compare
Simplify <platform>_generate cmake function signature, as TARGET_ALIAS and TARGET_NAME are still in scope and do not need to be passed. Add USE_FOLDERS, and FOLDER properties to group targets in VS and XCode Guard test target with GODOT_ENABLE_TESTING Generate all three variants in the form godot-cpp.test.<target> to remove the -DTEST_TARGET option clutter. Update the docs/cmake.rst with information about the testing target Update the Github CI
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.
Thanks!
This PR resolves CMake name clashes #1657, Partially resolves optionally disable targets #1650, and tidies IDE usage for VS and XCode by grouping targets under a subfolder.
GODOT_ENABLE_TESTING
option default OFF, and guardadd_subdirectory( test )
by defaultUSE_FOLDERS ON
and target propertyFOLDER "godot-cpp"
to group targets in VS and XCode