From 1ea043ee13497e174c3495bf85000d3e0a51dc44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sat, 18 Mar 2023 00:39:08 +0800 Subject: [PATCH] update --- example/example.pro | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/example/example.pro b/example/example.pro index ef42f84..343e17a 100644 --- a/example/example.pro +++ b/example/example.pro @@ -28,15 +28,13 @@ CONFIG(debug,debug|release) { win32 { -!exists($$DESTDIR) { - mkpath($$DESTDIR) -} + contains(QT_ARCH, i386) { COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x86/*.dll) $$DESTDIR - QMAKE_POST_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\) + QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\) } else { COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x64/*.dll) $$DESTDIR - QMAKE_POST_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\) + QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\) } }