MantisBT - CMake
View Issue Details
0010587CMakeCCMakepublic2010-04-21 06:092011-04-04 12:00
Hauke Heibel 
David Cole 
highmajoralways
closedfixed 
CMake-2-8 
CMake 2.8.4CMake 2.8.4 
0010587: try_compile generates unexpected warnings due to deprecated /nologo- option
While trying to compile the most recent ITK (I will nonetheless present a CMake related issue) I recognized an error which I could trace back to a misinterpretation of the try_compile output variable (OUTPUT_VARIABLE) which is caused by a deprecated compiler flag - "/nologo-".

In the CMake file itkTestFriendTemplateFunction.cmake, the output is expected to create zero warnings. Since this is not the case anymore, the generator process is currently flawed.
The attached archive contains ITK's CMakeCache.txt along with a modified version of itkTestFriendTemplatedFunction.cmake that I used to log the try_compile output as well as to be able to compile ITK at all. The try_compile output is contained in the file OUTPUT_VARIABLE.txt.

I used CMake 2.8.1 and the generator was "Visual Studio 2010 Win64" under Windows 7. The Visual Studio version is "Visual Studio 2010 Ultimate".
No tags attached.
zip try_compile.zip (28,065) 2010-04-21 06:09
https://public.kitware.com/Bug/file/3044/try_compile.zip
Issue History
2010-04-21 06:09Hauke HeibelNew Issue
2010-04-21 06:09Hauke HeibelFile Added: try_compile.zip
2010-04-21 07:54Bill HoffmanStatusnew => assigned
2010-04-21 07:54Bill HoffmanAssigned To => David Cole
2010-04-21 07:54Bill HoffmanNote Added: 0020330
2010-09-09 17:38David ColePrioritynormal => high
2010-11-10 21:09David ColeTarget Version => CMake 2.8.4
2010-12-17 16:45David ColeNote Added: 0024249
2010-12-17 16:45David ColeStatusassigned => resolved
2010-12-17 16:45David ColeFixed in Version => CMake 2.8.4
2010-12-17 16:45David ColeResolutionopen => fixed
2011-04-04 12:00David ColeNote Added: 0026072
2011-04-04 12:00David ColeStatusresolved => closed

Notes
(0020330)
Bill Hoffman   
2010-04-21 07:54   
This looks like a quick ITK WA12 task.
(0024249)
David Cole   
2010-12-17 16:45   
Fixed in the 'next' branch of CMake:
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=984acc884ba4c21192712c20b7820d94ad855605 [^]

Fix should appear in CMake 2.8.4
(0026072)
David Cole   
2011-04-04 12:00   
Closing resolved issues that have not been updated in more than 3 months.