New in version v21.06.00.
Creates a self-contained file that makes sure the requested language is enabled globally.
rapids_export_write_language( (BUILD|INSTALL) (CXX|CUDA|...) <file_path> )
The contents of <file_path> will be a self-contained file that when called
include will make sure the requested
language is enabled globally.
This is required as CMake’s
only supports enabling languages for the current directory scope, and doesn’t support
being called from within functions. These limitations make it impossible
for packages included via CPM to enable extra languages.
This uses some serious CMake black magic to make sure that
enable_language occurs both at the call site,
and up the entire
enable_language stack so
the language is enabled globally.