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

CMake has problems with Qt5::Qt5WebEngineWidgets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.1
    • 5.4.0 Beta
    • WebEngine
    • None
    • OpenSuse 12.3, MacOSX Yosemite, Windows 7
    • 75b979f2f0bf3eaf623595b5bc8c3d5959194f72

    Description

      When running CMake with a small test program for the new Qt5 WebEngine, I get the following error:
      Configuring done
      CMake Error at CMakeLists.txt:12 (add_executable):
      Target "tstEngine" links to target "Qt5::Qt5WebEngineWidgets" but the
      target was not found. Perhaps a find_package() call is missing for an
      IMPORTED target, or an ALIAS target is missing?

      I have included the CMake configuration file, but basically it uses the following:
      find_package(Qt5WebEngineWidgets) and
      target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::WebEngineWidgets)

      If I remove the engine (only using Qt5Core), everything builds ok.

      Attachments

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

        Activity

          People

            jturcott Jocelyn Turcotte
            luismdevries L.M. de Vries
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes