Question

I can not find any documentation regarding Xcode ONLY_ACTIVE_ARCH flag.

Is it possible to set it with cmake?

Était-ce utile?

La solution

I found the solution by using SET_TARGET_PROPERTIES within XCODE_ATTRIBUTE_.

set_target_properties(${PROJECT_NAME}
                      PROPERTIES
                      XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "YES"
)
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top