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

cmake: Using the OUTPUT_DIR argument in ifcodegen_ functions doesn't work

    XMLWordPrintable

Details

    • 25393b8362 (qt/qtinterfaceframework/dev) 3736ef8a87 (qt/qtinterfaceframework/6.3) b133b6005c (qt/qtinterfaceframework/6.2) b133b6005c (qt/qtinterfaceframework/6.2.4)

    Description

      When using the OUTPUT_DIR argument of ifcodegen_extend_target the generated code doesn't compile correctly and shows error like this:

      CMake Error at /home/gagi/work/build/qt6/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:559 (add_executable):
        Cannot find source file:
      
          tst_custom.cpp
      
        Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
        .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
      Call Stack (most recent call first):
        /home/gagi/work/build/qt6/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:523 (_qt_internal_create_executable)
        /home/gagi/work/build/qt6/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:870 (qt6_add_executable)
        tests/auto/core/ifcodegen/custom-template/full-path/CMakeLists.txt:14 (qt_add_executable)
      
      

      Attachments

        Activity

          People

            gagi Dominik Holland
            gagi Dominik Holland
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: