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

Multiple qt6_add_protobuf calls with different OUTPUT_DIRECTORY argument fail to generate code

    XMLWordPrintable

Details

    • 5

    Description

      qt6_add_protobuf(my_target
           ...
           OUTPUT_DIRECTORY
                 ${CMAKE_CURRENT_BINARY_DIR}/app
      )
      
      qt6_add_grpc(my_target CLIENT
          ...
      )
      

      The above code fails with:

      Cannot find source file:
          path/to/build/dir/my_target_gen_exports.qpb.h
      

      This happens because qt6_add_protobuf(my_target call stores the exports file name but not the full/relative path to a file.

      Attachments

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

        Activity

          People

            semlanik Alexey Edelev
            semlanik Alexey Edelev
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes