summaryrefslogtreecommitdiffstats
path: root/cmake/QtAutoDetect.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-07-20 17:16:04 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-07-20 18:12:26 +0200
commitbd4726fa5d553b8e84ff15f7d24ff6620beb32af (patch)
treea61467cf819acc979c4d70011c3eb83afdfa241e /cmake/QtAutoDetect.cmake
parent5e0129f63cbd45767342c43135f6061750511e33 (diff)
CMake: Pass CMAKE_OSX_ARCHITECTURES to try_compile on macOS
There was an inconsistency where configuring qtbase on Apple Silicon with the following command line produced different results rom the second variant. $ cmake ../qtbase -DCMAKE_OSX_ARCHITECTURES=arm64 vs $ CMAKE_OSX_ARCHITECTURES=arm64 cmake ../qtbase That happened because the CMAKE_OSX_ARCHITECTURES variables was not passed to project-based try_compile calls. This resulted in compile tests like SIMD avx to succeeded on Apple silicon, which shouldn't. To address that, always pass the architecture on macOS if it's specified. Change-Id: Ia12e86230cc6e5e11f387e3cbb273d90646ef2e3 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake/QtAutoDetect.cmake')
0 files changed, 0 insertions, 0 deletions