Fix GMX_TEST_CFLAG bug with acceleration flags
authorRoland Schulz <roland@utk.edu>
Sat, 17 Nov 2012 20:26:44 +0000 (15:26 -0500)
committerSzilárd Páll <pszilard@cbr.su.se>
Sun, 18 Nov 2012 21:19:55 +0000 (22:19 +0100)
commitb2ca506b28a22b8e2de9c42dab7750c1131ab754
tree1fa1525bee4d8719dd9f87b6422f663e86a07b9a
parent26de06aa24e38dfba4e973edffce2e113b01bb35
Fix GMX_TEST_CFLAG bug with acceleration flags

If a cmake error occured (e.g. fftw not found) between a flag being
tested (e.g. -msse4.1) and the flags being set, then those flags
weren't set. Neither on the first run with the error, nor later
because in later runs GROMACS_C_FLAGS_SET would already be set.

Fixes #1037

Change-Id: Ibc555d885bab5bec04a1aa5b10f06351e6aa6f38
cmake/gmxCFlags.cmake