[cmake-developers] [CMake] Cmake Frameworks and Bitcode
brad.king at kitware.com
Mon Mar 26 09:19:13 EDT 2018
On 03/26/2018 04:24 AM, Cameron Palmer wrote:
> However, setting the property BUILD_WITH_INSTALL_RPATH on or off doesn't
> change anything as far as I can tell. The target is still linked with
> -headerpad_max_install_names and the linker still complains.
Oops, I mixed up functionality with other platforms. On platforms
that do not have `-headerpad_max_install_names` we generate bogus
rpath content in the build tree to pad out enough space to replace
it in the installed binary in the install tree. That behavior is
turned off by BUILD_WITH_INSTALL_RPATH. On Apple platforms with
`-headerpad_max_install_names` the flag is simply hard-coded.
CMake would indeed need a new abstraction for `-fembed-bitcode`.
Also, CMP0068 means the BUILD_WITH_INSTALL_NAME_DIR should be used
instead of BUILD_WITH_INSTALL_RPATH.
> Also, looking at policy 68 and working with the INSTALL_NAME, which
> is the one thing you do care about, you cannot set the directory to
> @rpath which seems silly.
Sure we can. CMP0068 is only about the names of the CMake properties
that influence the behavior. The INSTALL_NAME_DIR property can be
set to "@rpath".
More information about the cmake-developers