-
- Downloads
target_link_libraries: Place $<TARGET_OBJECTS> before libraries
Linkers always use object files explicitly specified on the command line regardless of where they appear. Move them to the front of the list of linked libraries in so that symbols required by the object files can be resolved by any library. Issue: #22149
Showing
- Help/command/target_link_libraries.rst 85 additions, 0 deletionsHelp/command/target_link_libraries.rst
- Help/release/dev/link-objects-first.rst 8 additions, 0 deletionsHelp/release/dev/link-objects-first.rst
- Source/cmComputeLinkDepends.cxx 36 additions, 0 deletionsSource/cmComputeLinkDepends.cxx
- Source/cmComputeLinkDepends.h 5 additions, 0 deletionsSource/cmComputeLinkDepends.h
- Source/cmComputeTargetDepends.cxx 13 additions, 0 deletionsSource/cmComputeTargetDepends.cxx
- Source/cmGeneratorTarget.cxx 33 additions, 5 deletionsSource/cmGeneratorTarget.cxx
- Source/cmGeneratorTarget.h 1 addition, 0 deletionsSource/cmGeneratorTarget.h
- Source/cmLinkItem.h 6 additions, 0 deletionsSource/cmLinkItem.h
- Tests/ObjectLibrary/CMakeLists.txt 2 additions, 0 deletionsTests/ObjectLibrary/CMakeLists.txt
- Tests/ObjectLibrary/LinkObjects/CMakeLists.txt 45 additions, 0 deletionsTests/ObjectLibrary/LinkObjects/CMakeLists.txt
- Tests/ObjectLibrary/LinkObjects/a_dep.c 7 additions, 0 deletionsTests/ObjectLibrary/LinkObjects/a_dep.c
- Tests/ObjectLibrary/LinkObjects/a_obj.c 8 additions, 0 deletionsTests/ObjectLibrary/LinkObjects/a_obj.c
- Tests/ObjectLibrary/LinkObjects/b_dep.c 7 additions, 0 deletionsTests/ObjectLibrary/LinkObjects/b_dep.c
- Tests/ObjectLibrary/LinkObjects/b_obj.c 8 additions, 0 deletionsTests/ObjectLibrary/LinkObjects/b_obj.c
- Tests/ObjectLibrary/LinkObjects/c_dep.c 7 additions, 0 deletionsTests/ObjectLibrary/LinkObjects/c_dep.c
- Tests/ObjectLibrary/LinkObjects/c_obj.c 8 additions, 0 deletionsTests/ObjectLibrary/LinkObjects/c_obj.c
- Tests/ObjectLibrary/LinkObjects/d_dep.c 7 additions, 0 deletionsTests/ObjectLibrary/LinkObjects/d_dep.c
- Tests/ObjectLibrary/LinkObjects/d_obj.c 8 additions, 0 deletionsTests/ObjectLibrary/LinkObjects/d_obj.c
- Tests/ObjectLibrary/LinkObjects/e_dep.c 7 additions, 0 deletionsTests/ObjectLibrary/LinkObjects/e_dep.c
- Tests/ObjectLibrary/LinkObjects/e_lib.c 5 additions, 0 deletionsTests/ObjectLibrary/LinkObjects/e_lib.c
Loading
Please register or sign in to comment