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

Allow letting CMake choose the generator

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Currently a generator has to be set. Clearing the field will reset it to a default (‘Unix Makefiles’).

      CMake doesn’t require a generator to be specified. Without it it will simply choose one of the generators available (so it will be different on different platforms).

      I suggest allowing to leave the generator field empty, and that this will result in no -G option being passed to cmake. This will allow multi-slave builds to work across different platforms. (Something I am currently trying to set up, but which fails since there’s no generator I could choose that would work on all the targeted platforms.)

      (I’d be willing to implement this and send a pull request.)

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: 15knots
          Path:
          .project
          src/main/java/hudson/plugins/cmake/CmakeBuilder.java
          src/main/resources/hudson/plugins/cmake/CmakeBuilder/config.jelly
          src/main/resources/hudson/plugins/cmake/CmakeBuilder/help-generator.html
          src/test/java/hudson/plugins/cmake/CmakeBuilderTest.java
          http://jenkins-ci.org/commit/cmakebuilder-plugin/cfa73debff9f0706e9b20b40b906788795ff79ed
          Log:
          Progress on JENKINS-38227

          Compare: https://github.com/jenkinsci/cmakebuilder-plugin/compare/c0d6b8243d7d...cfa73debff9f

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: 15knots Path: .project src/main/java/hudson/plugins/cmake/CmakeBuilder.java src/main/resources/hudson/plugins/cmake/CmakeBuilder/config.jelly src/main/resources/hudson/plugins/cmake/CmakeBuilder/help-generator.html src/test/java/hudson/plugins/cmake/CmakeBuilderTest.java http://jenkins-ci.org/commit/cmakebuilder-plugin/cfa73debff9f0706e9b20b40b906788795ff79ed Log: Progress on JENKINS-38227 Compare: https://github.com/jenkinsci/cmakebuilder-plugin/compare/c0d6b8243d7d...cfa73debff9f
          Hide
          audiofanatic Craig Scott added a comment -

          As a workaround in the meantime, the Ninja generator should be supported on all major platforms.

          Show
          audiofanatic Craig Scott added a comment - As a workaround in the meantime, the Ninja generator should be supported on all major platforms.

            People

            • Assignee:
              15knots Martin Weber
              Reporter:
              biffen Theo Willows
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: