Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-06-06 03:16:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-06 03:16:06 +0300
commit0f6ac1883d6a72bfca4412c345a64ccb765b8edd (patch)
tree68a34cb147f877b4f8a7e56bfaaffdfed909f7d6 /build_files/cmake/macros.cmake
parent41ee85115d37b5666cfbf29b2483a63da8ccac81 (diff)
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.
Diffstat (limited to 'build_files/cmake/macros.cmake')
-rw-r--r--build_files/cmake/macros.cmake2
1 files changed, 1 insertions, 1 deletions
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