You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After building a static library it would be great if we could get the required list of libraries that need to be passed to the rust linker. If the cmake files use targets this info will be available.
The text was updated successfully, but these errors were encountered:
aboseley
changed the title
return list static librarys for linking
return static librarys required for linking
Mar 21, 2022
aboseley
changed the title
return static librarys required for linking
return static libraries required for linking
Mar 21, 2022
It works, and is reasonably resilient (ie OK for both local and system libs, STATIC and SHARED) but it is a messy way to workaround the lack of communication between rust and CMake.
IMPORTANT: if you want to link with IMPORTED lib ie all those coming from find_package (eg Boost) you MUST set them GLOBAL eg set_target_properties(Boost::filesystem PROPERTIES IMPORTED_GLOBAL TRUE)
I would happily take a cleaner approach if there is one I have missed!
After building a static library it would be great if we could get the required list of libraries that need to be passed to the rust linker. If the cmake files use targets this info will be available.
The text was updated successfully, but these errors were encountered: