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

-DQT_NO_DEBUG is missing when app is Release host Qt is Release target Qt is Debug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5, 6.6, 6.7, 6.8
    • Build System: CMake
    • None
    • Android

    Description

      It looks like -DQT_NO_DEBUG is missing on CMake 3.26.0 (and later). If we configure our project with CMake 3.25.3 it works.

       

      CMake 3.26.0

      [15/493] ccache /opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi26 -DGOVERNIKUS_QT -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0x060301 -DQT_MESSAGELOGCONTEXT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DUNICODE -I/home/... 

      CMake 3.25.3

      [14/493] ccache /opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi26 -DGOVERNIKUS_QT -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0x060301 -DQT_MESSAGELOGCONTEXT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DUNICODE -I/home/...
      

      Attachments

        Issue Links

          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:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes