Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在构建一个使用 CMake 生成项目的中型项目。在 XCode 7+ 上,ENABLE_BITCODE 选项默认设置为“是”。我想在我生成的 XCode 项目中将其默认设置为“否”。
我尝试将“-fno-embed-bitcode”和“-fno-embed-bitcode-marker”添加到我的 CMAKE_C_FLAGS 中,但这没有效果。
原来我没有足够的搜索。你可以通过调用来做到这一点:
set_target_properties(target PROPERTIES XCODE_ATTRIBUTE_ENABLE_BITCODE "NO")
来自您的 CMake 项目。