[llvm] r352628 - [CMake] Accept ENTITLEMENTS in llvm_add_library()
Stefan Granitz via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 30 07:10:08 PST 2019
Author: stefan.graenitz
Date: Wed Jan 30 07:10:08 2019
New Revision: 352628
URL: http://llvm.org/viewvc/llvm-project?rev=352628&view=rev
Log:
[CMake] Accept ENTITLEMENTS in llvm_add_library()
Summary: We added support for code signing entitlements in add_llvm_executable() with D54443. In the future it would be useful to have this functionality available also for libraries.
Reviewers: beanz, bogner
Reviewed By: bogner
Subscribers: mgorny, llvm-commits, lldb-commits, #lldb
Differential Revision: https://reviews.llvm.org/D57334
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=352628&r1=352627&r2=352628&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Wed Jan 30 07:10:08 2019
@@ -380,7 +380,7 @@ endfunction(set_windows_version_resource
function(llvm_add_library name)
cmake_parse_arguments(ARG
"MODULE;SHARED;STATIC;OBJECT;DISABLE_LLVM_LINK_LLVM_DYLIB;SONAME;NO_INSTALL_RPATH"
- "OUTPUT_NAME;PLUGIN_TOOL"
+ "OUTPUT_NAME;PLUGIN_TOOL;ENTITLEMENTS"
"ADDITIONAL_HEADERS;DEPENDS;LINK_COMPONENTS;LINK_LIBS;OBJLIBS"
${ARGN})
list(APPEND LLVM_COMMON_DEPENDS ${ARG_DEPENDS})
@@ -584,7 +584,7 @@ function(llvm_add_library name)
if(ARG_SHARED OR ARG_MODULE)
llvm_externalize_debuginfo(${name})
- llvm_codesign(${name})
+ llvm_codesign(${name} ENTITLEMENTS ${ARG_ENTITLEMENTS})
endif()
endfunction()
More information about the llvm-commits
mailing list