Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56020

Resolving filenames doesn't work with cmake/ninja generator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • analysis-model
    • None
    • warnings-ng 4.0.0, analysis-model-api 3.0.0

      I've a c++ project which is created with cmake (CMake build).

      When cmake create normal Makefiles, the warnings can be parsed and the warnings page contains the affected source files including a link to the source file:

      When I use 'Ninja' as 'Script Generator', the warnings page also shows all warnings but the source files are without a link:

      I did not change anything other so I assume the output is a little bit different so the warnings parser can not parse it.

      In the log file I see a warning: 'Can't resolve absolute path for some files' which would explain the problem. Looks like Ninja outputs relative paths. I'm using a build subdirectoy ('Build Directory').

        1. log.makefile
          4 kB
        2. log.ninja
          5 kB
        3. with_link.jpg
          with_link.jpg
          9 kB
        4. without_link.jpg
          without_link.jpg
          9 kB

            drulli Ulli Hafner
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: