[CMake] Accept entitlements for code signing in add_lldb_library()
authorStefan Granitz <stefan.graenitz@gmail.com>
Wed, 30 Jan 2019 15:13:16 +0000 (15:13 +0000)
committerStefan Granitz <stefan.graenitz@gmail.com>
Wed, 30 Jan 2019 15:13:16 +0000 (15:13 +0000)
commitf4283858fa24983d76a5b45ef6cc6c27a8f381c9
treeda1e6ae81b43f031db78b3ed8b403cd398c530c3
parent19c5987461865351e7b2f99c377997f2d536545f
[CMake] Accept entitlements for code signing in add_lldb_library()

Summary:
D57334 added entitlements support in `add_llvm_library()` so we can use it for library targets in LLDB.

Additionally this patch fixes the way that the entitlements argument is passed on from `add_lldb_executable()` to `add_llvm_executable()`. We still need the explicit parsing and passing on of single- and multi-value arguments as long as we are on CMake < 3.7 (due to bug https://gitlab.kitware.com/cmake/cmake/merge_requests/133).

Reviewers: beanz, JDevlieghere, aprantl

Reviewed By: JDevlieghere

Subscribers: mgorny, lldb-commits, #lldb

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

llvm-svn: 352629
lldb/cmake/modules/AddLLDB.cmake