diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2018-11-07 10:21:03 +0100 |
---|---|---|
committer | Jüri Valdmann <juri.valdmann@qt.io> | 2018-11-07 10:16:45 +0000 |
commit | db05412d378fb2e555b51a76d15f8ce7a03a9947 (patch) | |
tree | 5c51356c9df0b545d8ac8057ae545b3562ff9521 /tests/auto/widgets/printing | |
parent | 160b43c181bd23f7d1ef8d8b8bfa28f3762d8144 (diff) |
Fix building tst_printing against libc++
Linking fails if system poppler-cpp is built against libstdc++.
Change-Id: I5c46cb56770abe3ed6c2bfa461ee08d32f476f16
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'tests/auto/widgets/printing')
-rw-r--r-- | tests/auto/widgets/printing/tst_printing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/widgets/printing/tst_printing.cpp b/tests/auto/widgets/printing/tst_printing.cpp index 2fd12b8ec..380fb65ff 100644 --- a/tests/auto/widgets/printing/tst_printing.cpp +++ b/tests/auto/widgets/printing/tst_printing.cpp @@ -44,7 +44,7 @@ class tst_Printing : public QObject private slots: void printToPdfBasic(); void printRequest(); -#if QT_CONFIG(webengine_poppler_cpp) +#if QT_CONFIG(webengine_poppler_cpp) && defined(Q_OS_LINUX) && defined(__GLIBCXX__) void printToPdfPoppler(); #endif }; @@ -108,7 +108,7 @@ void tst_Printing::printRequest() QVERIFY(data.length() > 0); } -#if QT_CONFIG(webengine_poppler_cpp) +#if QT_CONFIG(webengine_poppler_cpp) && defined(Q_OS_LINUX) && defined(__GLIBCXX__) void tst_Printing::printToPdfPoppler() { // check if generated pdf is correct by searching for a know string on the page |