From cfc8ce02880e8a3e5fe38d70380ec6e23fc135da Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 22 Jun 2017 16:02:13 +0200 Subject: Silence some build warnings when building pysidetest Change-Id: I91a1c87e6153a65a6e4088a41fbe0f696c2dd058 Reviewed-by: Christian Tismer Reviewed-by: Friedemann Kleint --- sources/pyside2/tests/pysidetest/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sources/pyside2/tests') 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}) -- cgit v1.2.3