diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-12-26 15:15:39 +0800 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2019-12-29 18:12:25 +0100 |
commit | f394ef6ee3a0df371b1f90652a321af50151348d (patch) | |
tree | aa0c03b30ba96f058f8b287e172d50186e4c9792 | |
parent | d699e1d2c0e3d8673bd77ed9d7ee27816487ca25 (diff) | |
download | sigc++-f394ef6ee3a0df371b1f90652a321af50151348d.tar.gz |
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'.
-rw-r--r-- | MSVC_NMake/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
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) |