disable OpenMP with all OS X gcc 4.2-based compilers
authorSzilárd Páll <pszilard@cbr.su.se>
Tue, 15 Jan 2013 01:27:10 +0000 (17:27 -0800)
committerSzilárd Páll <pszilard@cbr.su.se>
Tue, 15 Jan 2013 08:47:15 +0000 (00:47 -0800)
commita6fee0ba5e9075411d4dadfab8a8684c4f9632d6
tree455eeb32c8cbd4692c2b03a7cc68175dca3626c1
parent765329cf9b4101f637acc1b75bd99a4d461b3db7
disable OpenMP with all OS X gcc 4.2-based compilers

Although gcc 4.2 should have OpenMP support, the gcc 4.2.1-based
compilers on Mac OS X (defaults in 10.6.x) all claim to support OpenMP,
but generates segfaulting code.

This change reworks the llvm-specific check and moves it out from the
C/CXX flag generation module.

This compiler is the default on many BSD os-es, but as no other gcc
4.2.x has been tested yet (to my knowledge), for now the limitation is
introduced only for the Mac OS X and gcc 4.2.x.

Refs #900

Change-Id: I1c2a27f6fc1162cf8999c65ff6173121109cfbad
CMakeLists.txt
cmake/gmxCFlags.cmake