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.
The CUDA Extension Wrangler Library (CUEW) is a cross-platform open-source C/C++ extension loading library. CUEW provides efficient run-time mechanisms for determining which CUDA functions and extensions extensions are supported on the target platform. CUDA core and extension functionality is exposed in a single header file. CUEW has been tested on a variety of operating systems, including Windows, Linux, Mac OS X. LICENSE CUEW library is released under the Apache 2.0 license.