From 6b3e73ce0b9f09ecb774f2a06308d544803a85a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Mon, 3 Apr 2023 21:13:50 +0800 Subject: [PATCH] update --- example/example.pro | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/example/example.pro b/example/example.pro index be84c3f3..5bdb77ad 100644 --- a/example/example.pro +++ b/example/example.pro @@ -25,10 +25,18 @@ CONFIG(debug,debug|release) { win32 { contains(QT_ARCH, i386) { COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x86/*.dll) $$DESTDIR - QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\) + contains(QMAKE_CC, cl) { + QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\) + } else { + QMAKE_PRE_LINK += $$QMAKE_COPY $$COPYDLL + } } else { COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x64/*.dll) $$DESTDIR - QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\) + contains(QMAKE_CC, cl) { + QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\) + } else { + QMAKE_PRE_LINK += $$QMAKE_COPY $$COPYDLL + } } }