Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-42

Source file not found when calling qul_target_qml_sources in child CMakeLists.txt

    XMLWordPrintable

Details

    • Windows
    • 724670e1bc7c3bc6ccfa64245d0cb8a5acb515de
    • Sprint 3.1/2021, Sprint 3.2/2021

    Description

      When child CMakeLists.txt is included to a project using add_subdirectory() cmake gives error:
      CMake Error at C:/Qt_2/QtMCUs/1.8.0/lib/cmake/Qul/AddExecutable.cmake:11 (_add_executable): Cannot find source file: V:/xxxxxxx/guidesktopenvironment/build/CMakeFiles/xxxxxxx.dir/_qul_dummy_xxx_input.h

      Build system would work if the top-most CMakeLists.txt calls qul_target_qml_sources() or qul_target_generate_interfaces().

      When using these commands in any of the child CMakeFiles, errors like "Source file xxxx not found" are shown.

      Way to reproduce:

      Open the attached application in Qt Creator with Qt for MCUs version 1.8.0 and run cmake.
      -> CMake fails and error is shown.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            paosmacz Patryk Osmaczko
            foxxx Tuukka Kettunen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes