Reputation: 2218
I can not find any documentation regarding Xcode ONLY_ACTIVE_ARCH flag.
Is it possible to set it with cmake?
Upvotes: 2
Views: 2769
Reputation: 2218
I found the solution by using SET_TARGET_PROPERTIES within XCODE_ATTRIBUTE_.
set_target_properties(${PROJECT_NAME}
PROPERTIES
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "YES"
)
Upvotes: 4