From eeaa85f758feb8e40553544fc53f02f671e4db39 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 8 Jan 2021 12:21:31 +0200 Subject: [PATCH] build script: copy files to root output directory --- build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 308690aa..380e713a 100755 --- a/build.py +++ b/build.py @@ -493,7 +493,8 @@ class CMakeOutputTarget(CMakeTarget): for output in self.outputs: src = builder.build_path + output - dst = self.prefix + os.sep + output + dst_sep_pos = output.rfind(os.sep) + dst = self.prefix + os.sep + (output if dst_sep_pos == -1 else output[dst_sep_pos + 1:]) copy_func = shutil.copytree if os.path.isdir(src) else shutil.copy copy_func(src, dst)