Commit: 0f6ac1883d6a72bfca4412c345a64ccb765b8edd
Author: Campbell Barton
Date: Thu Jun 6 10:16:06 2019 +1000
Branches: master
https://developer.blender.org/rB0f6ac1883d6a72bfca4412c345a64ccb765b8edd
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.
===================================================================
M build_files/cmake/macros.cmake
===================================================================
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index 10b293c64b4..5fd677ee5c9 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -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
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs