CMake: remove BLENDER_SORTED_LIBS
Use CMake's target_link_libraries instead of manually maintaining library dependencies in a single list. In practice adding new libraries often ended up being guess-work, now each library lists the libraries it uses. This was used for the game player executable so libraries could optionally link to stubs. If we need this functionality it can be done using target-properties as described in T46725.
This commit is contained in:
@@ -1051,19 +1051,11 @@ install(
|
||||
# Setup link libs
|
||||
|
||||
add_dependencies(blender makesdna)
|
||||
|
||||
# Use for testing 'BLENDER_SORTED_LIBS' removal.
|
||||
if(NOT (DEFINED WITHOUT_SORTED_LIBS AND WITHOUT_SORTED_LIBS))
|
||||
setup_blender_sorted_libs()
|
||||
target_link_libraries(blender ${BLENDER_SORTED_LIBS})
|
||||
else()
|
||||
target_link_libraries(blender ${LIB})
|
||||
endif()
|
||||
|
||||
target_link_libraries(blender ${LIB})
|
||||
unset(LIB)
|
||||
|
||||
setup_liblinks(blender)
|
||||
|
||||
unset(LIB)
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Setup launcher
|
||||
|
Reference in New Issue
Block a user