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

Cannot build ih 'Use cmake' is true

    XMLWordPrintable

Details

    Description

      Build output:

      [kjadshfakshfdkaj] $ /home/wr/devel/src/cmakebuilder-plugin/work/tools/hudson.plugins.cmake.CmakeTool/3.5.2/bin/cmake --build /home/wr/devel/src/cmakebuilder-plugin/work/jobs/aaa/workspace/kjadshfakshfdkaj clean all
      Unknown argument clean
      Unknown argument all
      Usage: cmake --build <dir> [options] [-- [native-options]]
      Options:
        <dir>          = Project binary directory to be built.
        --target <tgt> = Build <tgt> instead of default targets.
        --config <cfg> = For multi-configuration tools, choose <cfg>.
        --clean-first  = Build target 'clean' first, then build.
                         (To clean only, use --target 'clean'.)
        --use-stderr   = Ignored.  Behavior is default in CMake >= 3.0.
        --             = Pass remaining options to the native tool.
      Build step 'CMake Build' changed build result to FAILURE
      

      Attachments

        Activity

          15knots Martin Weber added a comment -

          With 'Use cmake' checked, the plugin will invoke

          cmake --build $builddir <args>
          

          You will have to add an arguments to tell cmake the target to be build:

          cmake --build $builddir --target all <args>
          

          Simply add --target all to the <args> field.to make it work

          15knots Martin Weber added a comment - With 'Use cmake' checked, the plugin will invoke cmake --build $builddir <args> You will have to add an arguments to tell cmake the target to be build: cmake --build $builddir --target all <args> Simply add --target all to the <args> field.to make it work

          People

            15knots Martin Weber
            15knots Martin Weber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: