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:
Campbell Barton
2019-04-14 15:18:44 +02:00
parent eee5a880f1
commit 47adab4f99
122 changed files with 490 additions and 127 deletions

View File

@@ -30,6 +30,9 @@ set(SRC
utfconv.h
)
set(LIB
)
# This is odd but leave it for now...
# Why have win32 check here? - this is only used for windows.
# ... because one day we might want to use it on other platforms.
@@ -40,4 +43,4 @@ if(WIN32)
)
endif()
blender_add_lib(bf_intern_utfconv "${SRC}" "${INC}" "${INC_SYS}")
blender_add_lib(bf_intern_utfconv "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")