aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2018-01-08 12:35:00 +0100
committerChristian Stenger <christian.stenger@qt.io>2018-01-08 14:20:02 +0000
commit38d5c585afa65159746703c3a12c94410810981c (patch)
tree6867f6c634d5923f135965df2bf88a02c353ebac /share
parent1ec9d76e2b3a8f2643a8cca6351f9391515db3b7 (diff)
AutoTest: Fix wizard for gtest on Windows
Change-Id: Iab9711df2455fc2efb678bfd85e8a95b2de7587c Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/templates/wizards/autotest/files/tst.qbs8
1 files changed, 7 insertions, 1 deletions
diff --git a/share/qtcreator/templates/wizards/autotest/files/tst.qbs b/share/qtcreator/templates/wizards/autotest/files/tst.qbs
index 58a647df86..33f15226af 100644
--- a/share/qtcreator/templates/wizards/autotest/files/tst.qbs
+++ b/share/qtcreator/templates/wizards/autotest/files/tst.qbs
@@ -34,7 +34,13 @@ CppApplication {
cpp.cxxLanguageVersion: "c++11"
cpp.defines: [ "GTEST_LANG_CXX11" ]
@endif
- cpp.dynamicLibraries: [ "pthread" ]
+ cpp.dynamicLibraries: {
+ if (qbs.hostOS.contains("windows")) {
+ return [];
+ } else {
+ return [ "pthread" ];
+ }
+ }
cpp.includePaths: [].concat(googleCommon.getGTestIncludes(googletestDir))