简体   繁体   中英

How can I disable XCode BITCODE within a CMake project?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM