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

QT5_MAKE_OUTPUT_FILE removes all suffixes from file name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.12.8, 5.14.2
    • 5.12.0, 5.12.5
    • Build System
    • None
    • linux, cmake version 3.14.6
    • 89bd5a7e733a64b694abf16b8d227dbbdd2d3ef7 (qt/qtbase/5.12) 5399f9443e30f7ca849b8096dbe9ee8c88a35c74 (qt/qtbase/dev)

    Description

      Because of usage

      get_filename_component(_outfile ${_outfile} NAME_WE)

      in Qt5CoreMacros.cmake all suffices are removed from input filename by this cmake routine.

      In attached project it causes invalid qt5_wrap_cpp macro behavior. As an output I got only one moc_ generated.

      build.ninja
      CMakeCache.txt
      CMakeFiles
      cmake_install.cmake
      moc_testclass.cpp
      moc_testclass.cpp_parameters
      rules.ninja
      test_cmake.cbp

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              semlanik Alexey Edelev
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes