Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One of the benefits of CMake which is not currently being realised is that target options can be selectively propagated to consumers. For expediency, I had previously made all the flags PUBLIC, which propagates all options to consumers. However, after some investigation, It appears that we can make the majority of them PRIVATE.
The compile_definitions must remain public as they are needed in consumer projects.
The compile_options and link_options can be made private and achieve a successful compile, but investigation is required for what should be propagated.
There are also flags and properties that can be tidied up to be more correct.
Remove RPATH_USE_ORIGIN from static libs
add INTERFACE_POSITION_INDEPENDENT_CODE ON
reset GODOT_ARCH property to SYSTEM_ARCH for macos because universal add MACOSX_RPATH to test target
remove redundant properties from test target
remove redundant and PUBLIC cxx_std_17 compile feature.
Move MSVC flag utf-8 to godot-cpp-test where it is required.