Kevin MOLCARD
Kevin MOLCARD

Reputation: 2218

How to set Xcode ONLY_ACTIVE_ARCH flag with cmake

I can not find any documentation regarding Xcode ONLY_ACTIVE_ARCH flag.

Is it possible to set it with cmake?

Upvotes: 2

Views: 2769

Answers (1)

Kevin MOLCARD
Kevin MOLCARD

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

Related Questions