[cmake-developers] [CMake] Cmake Frameworks and Bitcode

Brad King brad.king at kitware.com
Mon Mar 19 07:54:08 EDT 2018

On 03/12/2018 10:36 AM, Cameron Palmer wrote:
> So after a bit of hacking it seems that Cmake should provide something like:

For reference, this refers to a previous post:

    Bitcode and CMake

with the goal of using `-fembed-bitcode` while avoiding a warning:

    ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)

> Which would pass -fembed-bitcode to the compiler and linker and remove
> the option in Darwin.cmake for -Wl,-headerpad_max_install_names in

One may avoid the `-headerpad_max_install_names` option with this:


There is no reason to build with any rpath set for the build tree
when one cannot run the binaries on the macOS host anyway.


More information about the cmake-developers mailing list