compiler flag fixes
authorSzilard Pall <pszilard@cbr.su.se>
Wed, 18 Apr 2012 01:12:24 +0000 (03:12 +0200)
committerSzilard Pall <pszilard@cbr.su.se>
Thu, 19 Apr 2012 20:46:51 +0000 (22:46 +0200)
commitabfeff6208eafcc6243c3186ba47e3ecd45617a9
tree75fb48752ed0f4c9c2f71fb02447a9d5ec2801d3
parent4317ebd7c66a8274c6f13e0f460e2cb06142e7fd
compiler flag fixes

- added patched Check{C,CXX}CompilerFlag.cmake scripts to enable invalid
  option detection with Intel Compilers 12.x; the patches have been
  submitted to CMake (will be included in 2.8.9:
  http://cmake.org/gitweb?p=cmake.git;a=commit;h=bbb895959f54a9dec9f5132313f4a71fafc458e5),
  these files should be removed when the required CMake version will
  contain the fixes
- moved compiler option generation after the default cmake variable
  setting to add -Wunknown-pragmas only when GMX_OPENMP=OFF
- moved optimization options to release flags
- enabled warnings with the Intel Compilers

Change-Id: I767aea7f043255ee95eef5e7cb597c1c99feb05a
CMakeLists.txt
cmake/CheckCCompilerFlag.cmake [new file with mode: 0644]
cmake/CheckCXXCompilerFlag.cmake [new file with mode: 0644]
cmake/gmxCFlags.cmake