diff --git a/src/lib_ut.pri b/src/lib_ut.pri index 44fb8868c..c86bcc725 100644 --- a/src/lib_ut.pri +++ b/src/lib_ut.pri @@ -6,7 +6,13 @@ TEMPLATE = lib # Only on Windows, DESTDIR_TARGET is usable. On this platform, a blank happens to appear between # $(DESTDIR) and $(TARGET) win32 { + QMAKE_POST_LINK += $(COPY) $(DESTDIR_TARGET) $$DESTDIR_UT/$${TARGET}.ut + + # to avoid the major version being appended to the dll name - in this case -lxyz won't link it again + # because the library is called xyx0.dll. + CONFIG += skip_target_version_ext + } else { QMAKE_POST_LINK += $(COPY) $(DESTDIR)$(TARGET) $$DESTDIR_UT/$${TARGET}.ut } diff --git a/src/plugins/plugin.pri b/src/plugins/plugin.pri index eb4db15ff..3d9ff3494 100644 --- a/src/plugins/plugin.pri +++ b/src/plugins/plugin.pri @@ -13,7 +13,13 @@ LIBS += -L$$DESTDIR_KLP -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_laybas # Only on Windows, DESTDIR_TARGET is usable. On this platform, a blank happens to appear between # $(DESTDIR) and $(TARGET) win32 { + QMAKE_POST_LINK += $(COPY) $(DESTDIR_TARGET) $$DESTDIR_KLP/$${TARGET}.klp + + # to avoid the major version being appended to the dll name - in this case -lxyz won't link it again + # because the library is called xyx0.dll. + CONFIG += skip_target_version_ext + } else { QMAKE_POST_LINK += $(COPY) $(DESTDIR)$(TARGET) $$DESTDIR_KLP/$${TARGET}.klp }