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

Unknown CMake command "cmake_parse_arguments" with qt5_create_translation()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.3.1
    • 5.2.1
    • Build System
    • None
    • Qt 5.2.1 clang, CMake 2.8.12.2
    • 2fd07fba2746464178cb7aae4342aa6c998e5a5a

    Description

      When qt5_create_translation() is used, CMake errors with:

      CMake Error at ~/Qt5.2.1/5.2.1/clang_64/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsMacros.cmake:40 (cmake_parse_arguments):
      Unknown CMake command "cmake_parse_arguments".

      I can reproduce using just this:

      cmake_minimum_required(VERSION 2.8.12)
      find_package(Qt5LinguistTools)
      qt5_create_translation(qm_files "test.cpp" "en.ts")

      I fixed it in my project by adding a include(CMakeParseArguments) before I call qt5_create_translation, so I imagine that's all that's needed for Qt5LinguistToolsMacros.cmake.

      I think this might be related to the newer CMake version.

      Attachments

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

        Activity

          People

            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            kainjow Kevin Wojniak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes