aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2017-06-22 16:02:13 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2017-06-23 08:28:13 +0000
commitcfc8ce02880e8a3e5fe38d70380ec6e23fc135da (patch)
tree80299ac74f07489ad5bf882277e4abb26da96d6c /sources/pyside2/tests
parentafaaaea6dfc5ad5f521f273b1e10afb623051af0 (diff)
Silence some build warnings when building pysidetest
Change-Id: I91a1c87e6153a65a6e4088a41fbe0f696c2dd058 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/tests')
-rw-r--r--sources/pyside2/tests/pysidetest/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside2/tests/pysidetest/CMakeLists.txt b/sources/pyside2/tests/pysidetest/CMakeLists.txt
index 6236dab3b..96a1d1535 100644
--- a/sources/pyside2/tests/pysidetest/CMakeLists.txt
+++ b/sources/pyside2/tests/pysidetest/CMakeLists.txt
@@ -3,6 +3,9 @@ project(testbinding)
cmake_minimum_required(VERSION 2.6)
+# On Windows, don't link to qtmain.lib for executables automatically.
+cmake_policy(SET CMP0020 OLD)
+
set(QT_USE_QTCORE 1)
# no more supported: include(${QT_USE_FILE})
add_definitions(${Qt5Core_DEFINITIONS})