CMake: pass link deps to library targets with INTERFACE
Introduced since removing BLENDER_SORTED_LIBS. This caused building a library to build all it's dependencies.
This commit is contained in:
parent
41ee85115d
commit
0f6ac1883d
|
@ -235,7 +235,7 @@ function(blender_add_lib__impl
|
|||
add_library(${name} ${sources})
|
||||
|
||||
if (NOT "${library_deps}" STREQUAL "")
|
||||
target_link_libraries(${name} "${library_deps}")
|
||||
target_link_libraries(${name} INTERFACE "${library_deps}")
|
||||
endif()
|
||||
|
||||
# works fine without having the includes
|
||||
|
|
Loading…
Reference in New Issue