-
- Downloads
target_link_libraries: Fix out-of-dir linking of a list of targets
In a case like target_link_libraries(targetInOtherDir PUBLIC "$<1:a;b>") then all entries in the list need to be looked up in the caller's scope. Previously our `::@(directory-id)` suffix would apply only to the last entry. Instead surround the entire entry by a pair `::@(directory-id);...;::@` so that the `::@` syntax can encode a directory lookup scope change evaluated as the list is processed. Fixes: #20204
Showing
- Help/prop_tgt/LINK_LIBRARIES_INDIRECTION.txt 3 additions, 3 deletionsHelp/prop_tgt/LINK_LIBRARIES_INDIRECTION.txt
- Source/cmExportFileGenerator.cxx 4 additions, 0 deletionsSource/cmExportFileGenerator.cxx
- Source/cmGeneratorTarget.cxx 46 additions, 31 deletionsSource/cmGeneratorTarget.cxx
- Source/cmGeneratorTarget.h 8 additions, 0 deletionsSource/cmGeneratorTarget.h
- Source/cmTarget.cxx 3 additions, 10 deletionsSource/cmTarget.cxx
- Source/cmTarget.h 1 addition, 3 deletionsSource/cmTarget.h
- Source/cmTargetLinkLibrariesCommand.cxx 46 additions, 27 deletionsSource/cmTargetLinkLibrariesCommand.cxx
- Tests/CMakeCommands/target_link_libraries/SubDirB/CMakeLists.txt 3 additions, 2 deletions...MakeCommands/target_link_libraries/SubDirB/CMakeLists.txt
- Tests/ExportImport/Export/SubDirLinkA/CMakeLists.txt 1 addition, 1 deletionTests/ExportImport/Export/SubDirLinkA/CMakeLists.txt
- Tests/RunCMake/target_link_libraries/CMP0079-iface-NEW-stdout.txt 1 addition, 1 deletion...nCMake/target_link_libraries/CMP0079-iface-NEW-stdout.txt
- Tests/RunCMake/target_link_libraries/CMP0079-iface-OLD-stdout.txt 1 addition, 1 deletion...nCMake/target_link_libraries/CMP0079-iface-OLD-stdout.txt
- Tests/RunCMake/target_link_libraries/CMP0079-iface-WARN-stderr.txt 19 additions, 1 deletion...CMake/target_link_libraries/CMP0079-iface-WARN-stderr.txt
- Tests/RunCMake/target_link_libraries/CMP0079-iface-WARN-stdout.txt 1 addition, 1 deletion...CMake/target_link_libraries/CMP0079-iface-WARN-stdout.txt
- Tests/RunCMake/target_link_libraries/CMP0079-iface/CMakeLists.txt 1 addition, 1 deletion...nCMake/target_link_libraries/CMP0079-iface/CMakeLists.txt
- Tests/RunCMake/target_link_libraries/CMP0079-link-NEW-bogus-stderr.txt 1 addition, 1 deletion...e/target_link_libraries/CMP0079-link-NEW-bogus-stderr.txt
- Tests/RunCMake/target_link_libraries/CMP0079-link-NEW-bogus.cmake 1 addition, 1 deletion...nCMake/target_link_libraries/CMP0079-link-NEW-bogus.cmake
- Tests/RunCMake/target_link_libraries/CMP0079-link-NEW-stdout.txt 1 addition, 1 deletion...unCMake/target_link_libraries/CMP0079-link-NEW-stdout.txt
Loading
Please register or sign in to comment