![]() The PATH" ) set( CMAKE_LINK_LIBRARY_USING_weak_library_SUPPORTED TRUE ) endif() add_library( lib SHARED. (CMake targets and external libraries specified with file paths) and anotherįor other items specified by name only. In addition to the above, it is possible to have one pattern for paths Or the item itself exactly as specified in the is expanded to how the library would normally be linked on ![]() on Windows, or the library base name for other platforms). Or to a platform-specific value based on the item otherwise (the same as is expanded to the full path to the library for CMake targets, The following placeholders can be used in the expression: is used to specify the pattern for constructing theĬorresponding fragment on the linker command line for each library. LINK_GROUP generator expression should be used instead for such This means constructs like -start-group and -end-group,Īs supported by the GNU ld linker, cannot be used in this way. More than once if the library list is reorganized by CMake to satisfy otherĬonstraints. Grouped together though, so the and may appear ![]() There is no guarantee that the list of specified libraries will be kept LINK_LIBRARY expression, not each library item individually. Respectively the whole list of libraries specified in the When and are specified, they precede and follow
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |