Fix RelWithDebInfo name bugs, and use full optimization.
authorErik Lindahl <erik@kth.se>
Sat, 20 Sep 2014 12:12:02 +0000 (14:12 +0200)
committerErik Lindahl <erik@kth.se>
Sat, 20 Sep 2014 13:19:25 +0000 (15:19 +0200)
commit79cdf779e78f4f4c0c8573dc686004b9af94eb33
treeeb64e0bfabbe01ecb3b9b7b4800e14c1c938ef04
parent28bb38b9b5c10bff38e5e2fe0cd2b0c00433b382
Fix RelWithDebInfo name bugs, and use full optimization.

Gromacs was previously using a different name (RelWithDebugInfo) in
a few places, which caused the build types not to match, and
flags did not propagate correctly. Second, we now add our own
optimization flags at the end of the flag variables, to make it more
likely they override the CMake default choices. Otherwise, the -O2
flag at the end of the default RelWithDebInfo flags might revert our flags.

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