Create a Qt5LinguistTools config file in the build directory.
authorStephen Kelly <stephen.kelly@kdab.com>
Wed, 27 Jun 2012 07:30:09 +0000 (09:30 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 29 Jun 2012 20:40:25 +0000 (22:40 +0200)
As it is not using qt_module_config, it is otherwise not created there,
which breaks CI.

Change-Id: Ia4264d721a4f4a70542bc50329fd77def23d3914
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/linguist/linguist.pro

index 989de75..032ca80 100644 (file)
@@ -27,7 +27,9 @@ contains(CMAKE_BIN_DIR, "$${CMAKE_QT_INSTALL_PREFIX_ESCAPED}.*") {
 }
 
 cmake_linguist_config_file.input = $$PWD/Qt5LinguistToolsConfig.cmake.in
-cmake_linguist_config_file.output = $$OUT_PWD/Qt5LinguistToolsConfig.cmake
+# NOTE: We need to put the linguist tools cmake files in the lib directory. The lib directory
+# as set by the uitools module is used for that, as linguist doesn't set such a variable.
+cmake_linguist_config_file.output = $$eval(QT.uitools.libs)/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake
 QMAKE_SUBSTITUTES += cmake_linguist_config_file
 
 cmake_linguist_tools_files.files += $$cmake_linguist_config_file.output $$PWD/Qt5LinguistToolsMacros.cmake