From 9853bd638cd0132633c3ab2efd6ebabc7b7f7fbf Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 13 Jun 2018 01:44:21 +1000 Subject: [PATCH] Only use PCH on MSVC builds --- sleepyhead/sleepyhead.pro | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sleepyhead/sleepyhead.pro b/sleepyhead/sleepyhead.pro index 65325594..02e33dff 100644 --- a/sleepyhead/sleepyhead.pro +++ b/sleepyhead/sleepyhead.pro @@ -127,14 +127,12 @@ win32 { LIBS += -lz } - MY_LIB_FILES += $${DESTDIR}/opengl32sw.dll - extra_libs.files = MY_LIB_FILES - extra_libs.path = $$DESTDIR - INSTALLS += extra_libs - CONFIG += precompile_header - PRECOMPILED_HEADER = pch.h - HEADERS += pch.h + if (*-msvc*) { + CONFIG += precompile_header + PRECOMPILED_HEADER = pch.h + HEADERS += pch.h + } }