We’re successfully using CMake to embed an Info.plist into a CLI using the following syntax:
target_link_options(${target} PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
(If I understand correctly, it’s preferred to use target_link_options
to specify linker options per-target rather than globally with add_link_options
. And the LINKER:
keyword is a compiler-independent way to pass options to the linker.)
but it then seems to go on to do other linker stages which blow away the section
If the above doesn’t work, could you either push a branch to GitHub - Deep-Symmetry/carabiner: A loose connector for interacting with Ableton Link that demonstrates the problem, or share the verbose build output? (I’m not clear on what “other linker stages” you’re referring to.)