From d3c6dcd6fbe1e89f75076ef53e61a529667353e7 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 16 Apr 2020 21:01:59 +0300 Subject: [PATCH] Fix error in previous commit --- test/standalone/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/standalone/CMakeLists.txt b/test/standalone/CMakeLists.txt index e4db36d4..e7b5d8f5 100644 --- a/test/standalone/CMakeLists.txt +++ b/test/standalone/CMakeLists.txt @@ -20,7 +20,10 @@ PROJECT(LightPARAVIS) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10) - +CMAKE_POLICY(SET CMP0053 NEW) # for correct Qt 5 detection procedure +IF(WIN32) + CMAKE_POLICY(SET CMP0020 OLD) # disable automatic linking to qtmain.lib +ENDIF(WIN32) SET(CMAKE_BUILD_TYPE "Debug") OPTION(LIGHTPARAVIS_WITH_GUI "Build GUI test app" ON) -- 2.39.2