PCH: Avoid Apple-specific architecture flags on other platforms
Since !4561 (merged) the OSX_ARCHITECTURES
target
property (and corresponding CMAKE_OSX_ARCHITECTURES
variable) affects
flags on non-Apple platforms by accident. Add a missing condition to
avoid this.
Fixes: #21072 (closed)
Backport: release
Edited by Brad King