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

CMake warnings in qtdeclarative when configuring static build: Policy CMP0099 is not set

    XMLWordPrintable

Details

    • Linux/X11

    Description

      Configure Qt sources with:

      cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release -DFEATURE_system_jpeg=OFF -DFEATURE_system_png=OFF -DFEATURE_system_pcre2=OFF -DFEATURE_system_harfbuzz=OFF -DFEATURE_system_doubleconversion=OFF -DFEATURE_libudev=OFF -DQT_BUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF /home/qt/src -DCMAKE_INSTALL_PREFIX:PATH=/home/qt/src/qtbase -DBUILD_qtwebengine=FALSE

      Configure passes but at the end there is CMake Warnings (same warnings printed multiple times)

      -- Configuring done
       CMake Warning (dev) in qtdeclarative/src/qmltest/CMakeLists.txt:  Policy CMP0099 is not set: Link properties are transitive over private  dependency on static libraries.  Run "cmake --help-policy CMP0099" for  policy details.  Use the cmake_policy command to set the policy and  suppress this warning.This warning is for project developers.  Use -Wno-dev to suppress it.
       CMake Warning (dev) in qtdeclarative/src/imports/tooling/CMakeLists.txt:  Policy CMP0099 is not set: Link properties are transitive over private  dependency on static libraries.  Run "cmake --help-policy CMP0099" for  policy details.  Use the cmake_policy command to set the policy and  suppress this warning.This warning is for project developers.  Use -Wno-dev to suppress it.
      

      Since configure passes, I'm thinking that this is not an issues, but maybe it's good to check anyway .

      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
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes