CMake: prepare for BLENDER_SORTED_LIBS removal
No functional change, this adds LIB definition and args to cmake files. Without this it's difficult to migrate away from 'BLENDER_SORTED_LIBS' since there are many platforms/configurations that could break when changing linking order. Manually add and enable WITHOUT_SORTED_LIBS to try building without sorted libs (currently fails since all variables are empty). This check will eventually be removed. See T46725.
This commit is contained in:
@@ -1022,7 +1022,11 @@ install(
|
||||
|
||||
add_dependencies(blender makesdna)
|
||||
|
||||
setup_blender_sorted_libs()
|
||||
# Use for testing 'BLENDER_SORTED_LIBS' removal.
|
||||
if(NOT (DEFINED WITHOUT_SORTED_LIBS AND WITHOUT_SORTED_LIBS))
|
||||
setup_blender_sorted_libs()
|
||||
endif()
|
||||
|
||||
target_link_libraries(blender ${BLENDER_SORTED_LIBS})
|
||||
|
||||
setup_liblinks(blender)
|
||||
|
Reference in New Issue
Block a user