Fix CPU detection and SIMD on modern Mac/cmake combos
commit7dc675c6a3f456f832f263483574334bc6bd67fa
authorErik Lindahl <erik@kth.se>
Fri, 30 Aug 2019 19:39:21 +0000 (30 21:39 +0200)
committerErik Lindahl <erik.lindahl@gmail.com>
Tue, 3 Sep 2019 03:31:23 +0000 (3 05:31 +0200)
treeaaf5177c2e799d1d53cc47c77a25339acd518aaf
parenta5409af764384e27d7268287d535211884491a09
Fix CPU detection and SIMD on modern Mac/cmake combos

With recent versions of cmake on Mac, the CPU detection
program failed to compile since it was very fragile (buggy)
with respect to how compiler flags were defined - and that
in turn will mean losing all SIMD support.
This will fix the build, and it also adds a more vocal warning
if the CPU detection code cannot be compiled at all.

Change-Id: Idcdc8b59a4252b3faf8572311d2ca63a4d2a1bc0
cmake/gmxDetectCpu.cmake