From 4caa717f4723d2e814c61c7be7d63791aabf2757 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 26 Dec 2019 15:15:39 +0800 Subject: meson/Windows: Fix builds when builddir is a subdir of source tree It appears that Meson did not construct the paths properly for shutil.copy2() when building in a build directory that is a subdirectory of the sources, when using meson.current_build_dir(), possibly due how path separators are handled. Fix this by constructing the paths using project_build_root / 'MSVC_NMake'. --- MSVC_NMake/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MSVC_NMake/meson.build b/MSVC_NMake/meson.build index 89db786..e9964ca 100644 --- a/MSVC_NMake/meson.build +++ b/MSVC_NMake/meson.build @@ -13,5 +13,5 @@ configure_file( cmd_py = ''' import shutil shutil.copy2("@0@", "@1@") -'''.format(project_build_root / 'sigc++config.h', meson.current_build_dir()) +'''.format(project_build_root / 'sigc++config.h', project_build_root / 'MSVC_NMake') meson.add_postconf_script(python3.path(), '-c', cmd_py) -- cgit v1.2.1