From d48aae7a16e8e5f33683f5a498bb5b1edb21dc31 Mon Sep 17 00:00:00 2001 From: Sky Date: Sun, 6 Oct 2013 01:09:21 +0100 Subject: Fix Linux CMake issues arising from Windows workaround --- depends/pack200/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'depends/pack200/CMakeLists.txt') diff --git a/depends/pack200/CMakeLists.txt b/depends/pack200/CMakeLists.txt index d71f6535..386c8bb8 100644 --- a/depends/pack200/CMakeLists.txt +++ b/depends/pack200/CMakeLists.txt @@ -1,7 +1,9 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -# In Qt 5.1+ we have our own main() function, don't autolink to qtmain on Windows -cmake_policy(SET CMP0020 OLD) +IF(WIN32) + # In Qt 5.1+ we have our own main() function, don't autolink to qtmain on Windows + cmake_policy(SET CMP0020 OLD) +ENDIF() project(unpack200) -- cgit v1.2.3