Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123064

Simplify adding command line arguments to configure

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8
    • Build System: CMake
    • None
    • All

    Description

      To add a configure option -foo that translates into a CMake argument -DQT_FOO=ON one has to

      • add a qt_commandline_option(foo TYPE boolean) call in qt_cmdline.cmake
      • add a translate_boolean_input(foo QT_FOO) call in QtProcessConfigureArguments.cmake
      • add this mapping to configure-cmake-mapping.md

      At least the second step could be omitted if we could say in qt_cmdline.cmake

      qt_commandline_option(foo TYPE boolean CMAKE_NAME QT_FOO)
      

      Make it so!

      Bonus question: Can we generate the configure->CMake mapping from this?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes