Fix CPU detection and SIMD on modern Mac/cmake combos
authorErik Lindahl <erik@kth.se>
Fri, 30 Aug 2019 19:39:21 +0000 (21:39 +0200)
committerErik Lindahl <erik@kth.se>
Fri, 30 Aug 2019 19:39:21 +0000 (21:39 +0200)
commit60091c8d2f5e83e0630c11f0bfc704b612c68ee6
treea631e32fb1d56dbb0cae12bb2415e40e78c8cc77
parentd7d84c60391501129d0fe4403963df9ced70fd4d
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