8

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.

Joe Steele
  • 563
  • 5
  • 13

1 Answers1

15

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.

Joe Steele
  • 563
  • 5
  • 13