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

Enable QML Debugging via a CMake property / parameter

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.10
    • Build System: CMake
    • None
    • All

      Currently QML debugging is enabled by setting the compiler define -DQT_QML_DEBUG.

      This is done by Qt Creator by the means of CMAKE_CXX_FLAGS_INIT. But as pointed out at https://bugreports.qt.io/browse/QTBUG-139293 the flag is documented by CMake as something used by a CMake toolchain file, and not directly from users.

      Since we know that modifying CMAKE_CXX_FLAGS is considered bad practice by CMake, it would be great if Qt CMake would have a way to set the flag via a property / global variable.

        For Gerrit Dashboard: QTBUG-139551
        # Subject Branch Project Status CR V

            semlanik Alexey Edelev
            cadam Cristian Adam
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change