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

QT5_MAKE_OUTPUT_FILE removes all suffixes from file name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important 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)

      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

        1. test_cmake.tar.gz
          1 kB
          Alexey Edelev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes