-
-
Notifications
You must be signed in to change notification settings - Fork 793
Require 'api_version' and allow extensions to provide a default #2034
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,6 +61,13 @@ project( | |
| LANGUAGES CXX | ||
| ) | ||
|
|
||
| # Set the default API version for the test project. | ||
| # We're only setting this here because the test project is built weird; | ||
| # in a normal project, it would be set before including this CMakeLists.txt. | ||
| if(GODOTCPP_ENABLE_TESTING) | ||
| set(GODOTCPP_DEFAULT_API_VERSION "4.7") | ||
| endif() | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. whatever the godot-cpp is compiled with, so will the test. so this isn't necessary. setting it in the github yaml takes care of both.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, the idea is that the test project is an extension, and the imaginary author of that extension wants to set the default API version to "4.7". If you look in Similarly, I would love for the code referenced above to be in In a real project, I think the extension developer can set This doesn't really relate to what we're doing on CI (where we may test multiple different versions). This is attempting to set the default used for tests when the user doesn't explicitly set an API version, including when building locally
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just added an additional comment by this code to explain that this only done this way because the test project is built weird :-)
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For cmake the integration testing is just another target in the godot-cpp project. |
||
| compiler_detection() | ||
| godotcpp_generate() | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.