CMake/Tests/CMakeCommands/target_link_libraries/link_only.cpp
Robert Maynard c87004fdc3 COMPILE_ONLY: Genex now stops object libraries from linking
Previously we didn't properly exclude $<COMPILE_ONLY:OBJECT lib>
from the right hand side of  `target_link_libraries`.

Fix the update that commit 73337cb383 (LINK_LIBRARIES: Evaluate
separately for linking and usage requirements, 2022-03-22,
v3.24.0-rc1~404^2~2) made to `AddObjectEntries`.

Fixes: #26642
2025-01-28 10:01:00 -05:00

5 lines
27 B
C++