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:
parent
0081c4b64a
commit
73db631440
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user