Fix broken tests build in multi-binaries case.

When `WITH_TESTS_SINGLE_BINARY` is disabled, and `WITH_BUILDINFO` is
enabled, (most of) the generated tests binaries need to link buildinfo.

Pull Request: https://projects.blender.org/blender/blender/pulls/123734
This commit is contained in:
Bastien Montagne 2024-06-25 16:45:13 +02:00 committed by Gitea
parent 4a37e8ed7b
commit da814712a5

@ -359,6 +359,10 @@ function(blender_add_test_suite_executable
if(APPLE)
target_link_libraries("${_test_name}_test" PRIVATE "-Wl,-force_load,${PYTHON_LIBRARIES}")
endif()
if(WITH_BUILDINFO)
target_link_libraries("${_test_name}_test" PRIVATE buildinfoobj)
endif()
endif()
endforeach()
endif()