llvm.org GIT mirror llvm / a47be0e
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352628 91177308-0d34-0410-b5e6-96231b3b80d8 Stefan Granitz 8 months ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
379379 function(llvm_add_library name)
380380 cmake_parse_arguments(ARG
381381 "MODULE;SHARED;STATIC;OBJECT;DISABLE_LLVM_LINK_LLVM_DYLIB;SONAME;NO_INSTALL_RPATH"
382 "OUTPUT_NAME;PLUGIN_TOOL"
382 "OUTPUT_NAME;PLUGIN_TOOL;ENTITLEMENTS"
383383 "ADDITIONAL_HEADERS;DEPENDS;LINK_COMPONENTS;LINK_LIBS;OBJLIBS"
384384 ${ARGN})
385385 list(APPEND LLVM_COMMON_DEPENDS ${ARG_DEPENDS})
583583
584584 if(ARG_SHARED OR ARG_MODULE)
585585 llvm_externalize_debuginfo(${name})
586 llvm_codesign(${name})
586 llvm_codesign(${name} ENTITLEMENTS ${ARG_ENTITLEMENTS})
587587 endif()
588588 endfunction()
589589