Reverts dcb2821292 but handles the linker error by relying on target_link_libraries deduplication. Reverts 18a15bafe8 but handles blender_test linking after dependency change by passing lib to target_link_libraries itself. Closes #107033
dcb2821292
18a15bafe8