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

cannot disable WARNINGS_ARE_ERRORS for a single module

    XMLWordPrintable

Details

    • Task
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • None
    • Build System: CMake
    • None

    Description

      Hi, I am building for Android (32bit) and there are some warnings, which are errors. If I build the full qt5, I can pass "-no-warnings-are-errors" to configure, which is translated to "-DWARNINGS_ARE_ERRORS=OFF" for cmake and it works. Now I want to build only qtdeclarative. I call CMake with "-DWARNINGS_ARE_ERRORS=OFF" and it tells me

      Manually-specified variables were not used by the project:

      WARNINGS_ARE_ERRORS

      and afterwards the build fails because of the warnings which are errors.
      How can I disable the "warnings are errors" for a single module?
      Here is my full CMake command:

      /usr/bin/cmake -GNinja -DWARNINGS_ARE_ERRORS=OFF -DBUILD_WITH_PCH=OFF -DCMAKE_TOOLCHAIN_FILE=/home/andreasbuhr/Android/Sdk/ndk/21.3.6528147/build/cmake/android.toolchain.cmake -DANDROID_SDK_ROOT=/home/andreasbuhr/Android/Sdk -DANDROID_STL="c++_shared" -DQT_HOST_PATH=$basedir/qtbase -DCMAKE_FIND_ROOT_PATH=$basedir/qtbase-android -DFEATURE_developer_build=ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DQT_BUILD_EXAMPLES=ON /home/andreasbuhr/development/qtdev/qtdeclarative

      The full set of commands is attached.

      Attachments

        1. buildcommands_20210301_2.sh
          1 kB
        2. buildcommands_20210301_3.sh
          1 kB
        3. buildcommands_20210301.sh
          2 kB
        4. buildcommands.sh
          2 kB
        5. output_20210301_2.txt
          863 kB
        6. output_20210301_3.txt
          1.46 MB
        7. output_20210301.txt
          1.26 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            andreasbuhr Andreas Buhr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes