MantisBT - CMake
View Issue Details
0015048CMakeCMakepublic2014-07-30 15:052015-01-05 08:39
Erik Lindahl 
Brad King 
normalminoralways
closedfixed 
x86WindowsHPC Server 2008
CMake 3.0 
CMake 3.0.1CMake 3.0.1 
0015048: Semicolon in AIX compiler warning FAIL_REFEX causes it to match other output
In CMakeCheckCompilerFlagCommonPatterns.cmake of CMake-3.0, the FAIL_REGEX string for AIX contains a semicolon. This appears to cause the string to be split in two entries (since CMake uses semicolon as a separator for lists).

Since the part after the semicolon is merely the word "ignored", any compiler producing that word in the output will have a failure triggered.
We found this when using the Intel 12.1.0 compiler on Windows HPC 2008 since that emits the linker warning "LINK : warning LNK4224: /INCREMENTAL:YES is no longer supported; ignored", which caused the above test to trigger for the "ignored" word.

Suggest to replace semicolon with a period to match any character in the regular expression.
No tags attached.
Issue History
2014-07-30 15:05Erik LindahlNew Issue
2014-07-30 15:13Brad KingNote Added: 0036504
2014-07-30 15:15Erik LindahlNote Added: 0036505
2014-07-30 15:19Rolf Eike BeerNote Added: 0036506
2014-07-30 15:21Brad KingNote Added: 0036507
2014-07-30 15:23Brad KingNote Added: 0036508
2014-07-30 15:24Brad KingAssigned To => Brad King
2014-07-30 15:24Brad KingStatusnew => assigned
2014-07-30 15:24Brad KingTarget Version => CMake 3.0.1
2014-08-05 13:02Brad KingStatusassigned => resolved
2014-08-05 13:02Brad KingResolutionopen => fixed
2014-08-05 13:02Brad KingFixed in Version => CMake 3.0.1
2015-01-05 08:39Robert MaynardNote Added: 0037608
2015-01-05 08:39Robert MaynardStatusresolved => closed

Notes
(0036504)
Brad King   
2014-07-30 15:13   
Please try this patch:

- FAIL_REGEX "not supported in this configuration; ignored" # AIX
+ FAIL_REGEX "not supported in this configuration. ignored" # AIX
(0036505)
Erik Lindahl   
2014-07-30 15:15   
Already confirmed to work!
(0036506)
Rolf Eike Beer   
2014-07-30 15:19   
Just quote the semicolon: "... configuration\\; ignored"
(0036507)
Brad King   
2014-07-30 15:21   
Re 0015048:0036506: CMake generally does not support ';' in list values, and that kind of escape only works for one level of evaluation. To avoid breaking this in the future it is much simpler to match with '.'.
(0036508)
Brad King   
2014-07-30 15:23   
Re 0015048:0036505: Thanks for testing. Applied:

 Check*CompilerFlag: Avoid ';' in common pattern
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cac91206 [^]
(0037608)
Robert Maynard   
2015-01-05 08:39   
Closing resolved issues that have not been updated in more than 4 months