Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77376 CMake Port: Upstream CMake issues
  3. QTBUG-76898

Fix CMake to support device_and_simulator iOS builds

    XMLWordPrintable

    Details

    • Platform/s:
      iOS/tvOS/watchOS

      Description

      qmake allows compiling a single cpp files while targeting both a device SDK and a simulator SDK.

      This is accomplished by specifying multiple flags like -m$${version_identifier}-version-min flags, -syslibroot, -isysroot prepepended by an -Xarch_

      {arch}

      flag.

      CMake currently lacks support for that, which means it is not possible build and link a library targeting both device and simulators in one build pass.

      I expect that changes in CMake pertaining to CMAKE_OSX_ARCHITECTURES, find_package / find_library will be needed.

      Upstream bug https://gitlab.kitware.com/cmake/cmake/issues/19534

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                alexandru.croitor Alexandru Croitor
                Reporter:
                alexandru.croitor Alexandru Croitor
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes