Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.2.1
-
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
For Gerrit Dashboard: QTBUG-38375 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
83602,3 | Include CMakeParseArguments in Qt5LinguistToolsMacros.cmake | stable | qt/qttools | Status: MERGED | +2 | 0 |