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

Qt6LinguistTool CMake Policy CMP0007 not met

    XMLWordPrintable

Details

    • macOS
    • a7cc0ff6e (dev), 7a2380bb5 (6.8)

    Description

      When running the Linguist Tools in my CMake script it constantly give this warning which I seemingly cannot influence. 
      I have already added 3rd party libs to be excluded from the translation. But It seems that this error is due to the Qt libs itself.

       

      # Setup Translator tool 
      qt_add_translations(myApp
           TS_FILE_BASE translating-qml
           TS_FILE_DIR ./lang
           LRELEASE_OPTIONS -idbased
       )

       

      # exclude 3rd party libs
      set_property(TARGET myApp
          PROPERTY QT_EXCLUDE_SOURCES_FROM_TRANSLATION
          ${3rdParty1}
          ${3rdParty2_SOURCE_DIR}
      )

       

      From what I get it is just throwing this warning because of an empty element in the list -> ;;  in the last line

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes