Ninja Build

Sysprogs forums Forums VisualGDB Ninja Build

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7334
    tmaierhofer
    Participant

    Does VisualGDB support Ninja Builds (maybe over CMake?), and if how ist this configured

    #7343
    support
    Keymaster

    Hi,

    We don’t support it directly. However you can import a Ninja Build project to VisualGDB by selecting “Import a project built with other tools” in the wizard and specifying the build command line and the path to the built executable. VisualGDB will then invoke the command line you specified to build your project.

    #13560
    kurt
    Participant

    In the dialog shown in the attachment, is it possible to pass -G "Ninja" as the argument?  I have tried it and it doesn’t work, but perhaps it is supported, just that I am doing things incorrectly?

    Attachments:
    You must be logged in to view attached files.
    #13581
    support
    Keymaster

    Hi,

    Sorry, this won’t work as VisualGDB would still try to specify “-G Makefile” internally. As a workaround, please modify the .vgdbsettings (or .vgdbcmake) file as shown below:

    <Build xsi:type="com.visualgdb.build.cmake">
        <!-- ... -->
        <CMakeMakefileType>Ninja</CMakeMakefileType>
    </Build>

    We do agree that this workaround is inconvenient and will include a GUI setting for this in the next major update.

    #13589
    kurt
    Participant

    Thanks for the quick response, as always.  It works great!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.