[FEA] have BUILD
and INSTALL
export sets understand static linking
#176
Labels
BUILD
and INSTALL
export sets understand static linking
#176
Is your feature request related to a problem? Please describe.
Currently the build and install export sets don't understand that static linking means that
PRIVATE
dependencies arerequired to consume an exported library.
This generally means that all projects using rapids-cmake don't properly export dependencies when built statically, since they
only track dependencies that are required to use the library when built 'shared' ( .so )
Describe the solution you'd like
The optimal solution would be to have CMake do the following:
find_package
calls need by the link rules of the exported targetsIf this becomes unreasonable to implement in CMake itself, we can do the following in rapids-cmake:
PUBLIC
andPRIVATE
keywords torapids_find_package
andrapids_cpm_find
.rapids_export
with aINCLUDE_PRIVATE
flag that will be set when building statically.The text was updated successfully, but these errors were encountered: