View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011644CMakeCMakepublic2010-12-27 11:282010-12-28 09:23
ReporterAndriy Rysin 
Assigned ToBrad King 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product VersionCMake 2.8.3 
Target VersionFixed in Version 
Summary0011644: CMake output when looking for objects could be more compact
DescriptionWhen cmake looks for functions etc it prints two (almost identical) messages twice, e.g.

-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found

there could easily be dozens and dozens of those messages so finding something in the output can be hard. It would be nice if cmake could compact those two into one, either by not putting new line after first message and just adding "found/not fond/..." after the step is done. Or returning the caret before printing status line instead of doing new line (that'll help at least on the terminals that support that).
Steps To ReproduceRun cmake and observe the "Looking for" lines
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0024329)
Brad King (manager)
2010-12-28 09:23

Those are status messages.

Code that outputs those lines is of this form:

  message(STATUS "Doing the test")
  ...big complicated mess of code to do the test...
  if(worked)
    message(STATUS "Doing the test - passed")
  else()
    message(STATUS "Doing the test - failed")
  endif()

We have to print the line at the beginning so we know what was happening if something goes wrong and the later messages never print. The test code might generate warnings or other messages that would look ugly if the original line didn't have a newline.

IOW, this would be a HUGE effort to fix just for a "nice to have" feature that does not affect the build results at all.

 Issue History
Date Modified Username Field Change
2010-12-27 11:28 Andriy Rysin New Issue
2010-12-28 09:23 Brad King Note Added: 0024329
2010-12-28 09:23 Brad King Status new => closed
2010-12-28 09:23 Brad King Assigned To => Brad King
2010-12-28 09:23 Brad King Resolution open => won't fix


Copyright © 2000 - 2018 MantisBT Team