When I use add_definitions(-DENABLE_SOMETHING) or add_compile_definitions(-DENABLE_SOMETHING) in CMake to generate a XCode Project, it will work for all archs in build setting.Just like below:
How could I use add_definitions or add_compile_definitions for specific arch, like this:

Because I want to define different macros for arm64 and armv7.
I tried to append or set xcode property XCODE_ATTRIBUTE_GCC_PREPROCESSOR_DEFINITIONS[arch=arm64], but it will override the value generated before and only the new macro remained.

I know there is a simple way to solve this by generating xcode project for two times with different arch, like this
cmake . -G Xcode -DARCHS="armv7"
cmake . -G Xcode -DARCHS="arm64"
but I wanna to know How to fix this avoid running the command two times.