From d5a5d73e3fcb0bfc27088cc8efec4ea01a074e4e Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Thu, 31 Mar 2016 00:26:05 +0400 Subject: [PATCH] Fix build on Windows --- limereport/limereport.pro | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/limereport/limereport.pro b/limereport/limereport.pro index c44d9b1..ffec743 100644 --- a/limereport/limereport.pro +++ b/limereport/limereport.pro @@ -26,13 +26,8 @@ include(limereport.pri) DEST_DIR = $$PWD/../include/ unix { - DESTDIR = $${BUILD_DIR}/$${BUILD_TYPE}/lib - + DESTDIR = $${BUILD_DIR}/$${BUILD_TYPE}/lib QMAKE_POST_LINK += mkdir -p $$quote($${DESTDIR}/include) $$escape_expand(\\n\\t) - - #for(FILE,EXTRA_FILES){ - # QMAKE_POST_LINK += $$quote($$QMAKE_COPY $${FILE} $${DEST_DIR}) $$escape_expand(\\n\\t) - #} for(FILE,EXTRA_FILES){ QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($${DESTDIR}/include/) $$escape_expand(\\n\\t) } @@ -40,13 +35,13 @@ unix { win32 { EXTRA_FILES ~= s,/,\\,g - DEST_DIR ~= s,/,\\,g BUILD_DIR ~= s,/,\\,g - - DESTDIR = $${BUILD_DIR}/$${BUILD_TYPE}/lib + DESTDIR = $${BUILD_DIR}/$${BUILD_TYPE}/lib + DEST_DIR = $$DESTDIR + DEST_DIR ~= s,/,\\,g for(FILE,EXTRA_FILES){ - QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($${DESTDIR}/include) $$escape_expand(\\n\\t) + QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($${DEST_DIR}\\include) $$escape_expand(\\n\\t) } }