Open deadlocklogic opened 6 days ago
@deadlocklogic IMO, this library does not have a feature in the cmake CMakeLists.txt
. This feature addon
is only applicable to vcpkg to meet the issue https://github.com/microsoft/vcpkg/issues/32024 . And the feature addon
is not compiled in the upstream code. Add_on
only exists as a folder of tool functions.
@deadlocklogic Neither this issue nor #32024 explain how the extra sources are expected to be used. There is no point in changing anything if nobody can explain how the change can be verified.
So basically the addons
feature is practically useless in its current form, there is no point copying sources to the installation directory if there aren't included in the build system.
All I am suggesting is adding the sources to the CMake target in order to link them later as a dependency, otherwise link errors will occur rendering this feature unusable.
@FrankXie05 the addons folder contains modules of helpful boilerplate code, many of them are a must have.
@dg0yt:
@deadlocklogic Neither this issue nor https://github.com/microsoft/vcpkg/issues/32024 explain how the extra sources are expected to be used. There is no point in changing anything if nobody can explain how the change can be verified.
I gave a suggestion on how these sources could be included.
I gave a suggestion on how these sources could be included.
Your suggestion is untested code which mixes portfile script mode (if("addons" IN_LIST FEATURES)
) with CMake project mode (target_sources(...)
). It is bound to fail.
But my question was not for how to achieve a particular installation effect, but for what kind of effect is intented by upstream. If they don't add it to a library, how are users expected to make use of it? Which observable (testable) result is expected from the port?
Is your feature request related to a problem? Please describe.
Related to #32024. Current implementation copies the feature
addon
files to the installed directory but doesn't include them in the build system.Proposed solution
This is heuristically generated, and may not be correct. Change this: https://github.com/microsoft/vcpkg/blob/813a241fb83adad503a391facaa6aa634631accc/ports/angelscript/portfile.cmake#L25-L28
Describe alternatives you've considered
No response
Additional context
No response