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

'Ninja Multi-Config' and 'Xcode' generator cannot use qt_add_qml_module with config specific libraries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.2, 6.7.0 RC
    • Build System: CMake
    • None

    Description

      We tried to use qt_add_qml_module to an existing library. It works good for a single config build. But we need to use Xcode for macOS and iOS and got those warnings. I can reproduce it on Linux with 'Ninja Multi-Config', too.

      CMake Error in src/ui/qml/CMakeLists.txt:
        Evaluation file to be written multiple times with different content.  This
        is generally caused by the content evaluating the configuration type,
        language, or location of object files:
      
         /Users/.../src/ui/qml/qmltypes/CompanyUiQml_foreign_types.txt
      
      qt_add_qml_module(CompanyUiQml
      	URI "Company.Type"
      	VERSION "${PROJECT_VERSION}"
      	OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/modules/${CMAKE_SYSTEM_NAME}/Company/Type
      	NO_CACHEGEN
      	NO_PLUGIN
      	NO_IMPORT_SCAN
      )
      

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            misery André Klitzing
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes