<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
I’m building frameworks for iOS/tvOS with bitcode at the command-line. In order to compile and link I need to add two things:
<div class="">
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 9pt;" class="">target_compile_options( <span style="color:#008000;font-weight:bold;" class="">library PUBLIC -fembed-bitcode </span>)<br class="">target_link_libraries( <span style="color:#008000;font-weight:bold;" class="">library PUBLIC -fembed-bitcode </span>)</pre>
<div class="">This works, but yields the complaint that:</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)</span></div>
</div>
<div class=""><br class="">
</div>
<div class="">Is there a cleaner way to do this, or do I need to hammer header pad_max_install_names in CMAKE_CXX_LINK_FLAGS?</div>
</body>
</html>