Fix CheckCXXCompilerFlag
authorRoland Schulz <roland@utk.edu>
Sun, 9 Mar 2014 01:00:49 +0000 (20:00 -0500)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 11 Mar 2014 01:44:51 +0000 (02:44 +0100)
commit61cfbf43bbd398e1e877aab796e4212d733a1801
tree143b4e0ffb7345763b909070020f54331f04eed2
parent1bcf0ded90f494deb7ae70259d911985d8752077
Fix CheckCXXCompilerFlag

ICC on Windows was always failing the CheckCXXCompilerFlag.
This was caused by the warning:
LINK : warning LNK4224: /INCREMENTAL:YES is no longer supported;  ignored
being matched by the compiler fail_regex for aix because of a missing
escale for the semicolon. A single escape isn't sufficient. Using double
escape ("\\\;") doesn't produce this problem, but I'm not sure whether it
always matches correctly thus instead a "." is used (works because it is
a regex). This fix doesn't address either the fact that the deprecated
linker flag is used nor does it address the problem that if incorrect
flags are somehow added (either by cmake or the user), this macro
fails without a diagnosible error message or fatal error (to notice it).

Change-Id: Ia45d6cd4fbf4f464bcb03e0d945085987a97aaad
cmake/CheckCXXCompilerFlag.cmake