Skip to content

PCH: Avoid Apple-specific architecture flags on other platforms

Brad King requested to merge brad.king/cmake:osx-archs-apple-only into master

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

Merge request reports