Reputation: 593
I am building a medium size project that uses CMake for project generation. On the XCode 7+ the ENABLE_BITCODE option is set to "Yes" by default. I would like to set that to "No" by default in my generated XCode projects.
I have tried adding "-fno-embed-bitcode" and "-fno-embed-bitcode-marker" to my CMAKE_C_FLAGS but this had no effect.
Upvotes: 8
Views: 4146
Reputation: 593
Turns out I did not search enough. You can do this by calling:
set_target_properties(target PROPERTIES XCODE_ATTRIBUTE_ENABLE_BITCODE "NO")
from your CMake project.
Upvotes: 15