CMake: Stop using LLVM's custom parse_arguments. NFC
authorFilipe Cabecinhas <me@filcab.net>
Fri, 19 Jun 2015 03:39:24 +0000 (03:39 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Fri, 19 Jun 2015 03:39:24 +0000 (03:39 +0000)
commit7af0a1cb842db88f4d63517456d98c1e506b23a6
treef9fcc11a36232bb090269dea542afbad56abdec2
parente7e628cc075146c87b1cef08cb5ac8449ae17fd7
CMake: Stop using LLVM's custom parse_arguments. NFC

Summary:
Use CMake's cmake_parse_arguments() instead.
It's called in a slightly different way, but supports all our use cases.
It's in CMake 2.8.8, which is our minimum supported version.

CMake 3.0 doc (roughly the same. No direct link to 2.8.8 doc):
http://www.cmake.org/cmake/help/v3.0/module/CMakeParseArguments.html?highlight=cmake_parse_arguments

Since I was already changing these calls, I changed ARCH and LIB into
ARCHS and LIBS to make it more clear that they're lists of arguments.

Reviewers: eugenis, samsonov, beanz

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10529

llvm-svn: 240120
14 files changed:
compiler-rt/cmake/Modules/AddCompilerRT.cmake
compiler-rt/cmake/Modules/CompilerRTCompile.cmake
compiler-rt/cmake/Modules/CompilerRTLink.cmake
compiler-rt/cmake/Modules/SanitizerUtils.cmake
compiler-rt/lib/asan/CMakeLists.txt
compiler-rt/lib/asan/tests/CMakeLists.txt
compiler-rt/lib/interception/CMakeLists.txt
compiler-rt/lib/lsan/CMakeLists.txt
compiler-rt/lib/msan/tests/CMakeLists.txt
compiler-rt/lib/profile/CMakeLists.txt
compiler-rt/lib/sanitizer_common/CMakeLists.txt
compiler-rt/lib/tsan/dd/CMakeLists.txt
compiler-rt/lib/tsan/tests/CMakeLists.txt
compiler-rt/lib/ubsan/CMakeLists.txt