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:
Campbell Barton 2019-06-06 10:16:06 +10:00
parent 41ee85115d
commit 0f6ac1883d
1 changed files with 1 additions and 1 deletions

View File

@ -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