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.
我找不到任何关于 Xcode ONLY_ACTIVE_ARCH 标志的文档。
可以用cmake设置吗?
我通过在XCODE_ATTRIBUTE_中使用SET_TARGET_PROPERTIES找到了解决方案。
set_target_properties(${PROJECT_NAME} PROPERTIES XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "YES" )