llvm.org GIT mirror llvm / b92659f
[CMake] Feed BUNDLE_PATH through llvm target wrappers This feeds the new llvm_codsign BUNDLE_PATH option through from the llvm target wrapper functions, so that you can specify the BUNDLE_PATH on the target's codesign. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362248 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman a month ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
389389 function(llvm_add_library name)
390390 cmake_parse_arguments(ARG
391391 "MODULE;SHARED;STATIC;OBJECT;DISABLE_LLVM_LINK_LLVM_DYLIB;SONAME;NO_INSTALL_RPATH"
392 "OUTPUT_NAME;PLUGIN_TOOL;ENTITLEMENTS"
392 "OUTPUT_NAME;PLUGIN_TOOL;ENTITLEMENTS;BUNDLE_PATH"
393393 "ADDITIONAL_HEADERS;DEPENDS;LINK_COMPONENTS;LINK_LIBS;OBJLIBS"
394394 ${ARGN})
395395 list(APPEND LLVM_COMMON_DEPENDS ${ARG_DEPENDS})
593593
594594 if(ARG_SHARED OR ARG_MODULE)
595595 llvm_externalize_debuginfo(${name})
596 llvm_codesign(${name} ENTITLEMENTS ${ARG_ENTITLEMENTS})
596 llvm_codesign(${name} ENTITLEMENTS ${ARG_ENTITLEMENTS} BUNDLE_PATH ${ARG_BUNDLE_PATH})
597597 endif()
598598 # clang and newer versions of ninja use high-resolutions timestamps,
599599 # but older versions of libtool on Darwin don't, so the archive will
715715 macro(add_llvm_executable name)
716716 cmake_parse_arguments(ARG
717717 "DISABLE_LLVM_LINK_LLVM_DYLIB;IGNORE_EXTERNALIZE_DEBUGINFO;NO_INSTALL_RPATH"
718 "ENTITLEMENTS"
718 "ENTITLEMENTS;BUNDLE_PATH"
719719 "DEPENDS"
720720 ${ARGN})
721721
797797 target_link_libraries(${name} PRIVATE ${LLVM_PTHREAD_LIB})
798798 endif()
799799
800 llvm_codesign(${name} ENTITLEMENTS ${ARG_ENTITLEMENTS})
800 llvm_codesign(${name} ENTITLEMENTS ${ARG_ENTITLEMENTS} BUNDLE_PATH ${ARG_BUNDLE_PATH})
801801 endmacro(add_llvm_executable name)
802802
803803 function(export_executable_symbols target)