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

Configuring a single-config qtopcua might fail to build tools when built against a multi-config Qt

XMLWordPrintable

    • baddc0a19 (dev), 858bb5df1 (6.9), b5e21105b (6.8)

      Configuring and building qtbase with

      qtbase/configure -debug-and-release -force-debug-info -prefix $PWD/../installed
      ninja install
      

      And then trying to build qtopcua with

      $qt/bin/qt-configure-module ../../../worktrees/dev/qtopcua -- -GNinja -DCMAKE_BUILD_TYPE=Release
      ninja
      

      will skip building all qtopcua tools, one of which is qopcuaxmldatatypes2cpp.

      This happens because of code in

      https://github.com/qt/qtbase/blob/1da7558bfd7626bcc40a214a90ae5027f32f6c7f/cmake/QtToolHelpers.cmake#L173

      EXCLUDE_FROM_ALL skips any config that is not RelWithDebInfo, which is not the configured Release.

      The code should build all tools, when it detects that a single-config generator is used to build a repo that is built against a debug-and-release qtbase.

      Originally reported as a comment on QTBUG-132338

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

            alexandru.croitor Alexandru Croitor
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes