[CMake][runtimes] Use cmake_parse_arguments in runtimes functions
authorPetr Hosek <phosek@chromium.org>
Thu, 16 Nov 2017 21:28:54 +0000 (21:28 +0000)
committerPetr Hosek <phosek@chromium.org>
Thu, 16 Nov 2017 21:28:54 +0000 (21:28 +0000)
commit2758fa8710d5fef5f9787b7dd1039d72209f5ec4
tree7f6c86afb15a2372d2789e151761e0b4bfd57794
parentadefb760a835a6bc0f6eef4d77d1f50b5082f147
[CMake][runtimes] Use cmake_parse_arguments in runtimes functions

Passing lists to functions in CMake is tricky, any list argument
has to be quoted otherwise it'll be expanded. To avoid this issue,
use cmake_parse_arguments in runtime functions and pass lists using
a keyword argument which eliminates any ambiguity when dealing with
lists.

Differential Revision: https://reviews.llvm.org/D40087

llvm-svn: 318457
llvm/runtimes/CMakeLists.txt