Skip to content

Commit 0cce9f1

Browse files
committed
MSVC_NMake/meson.build: Fix builds from tarballs
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'.
1 parent 81d7445 commit 0cce9f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MSVC_NMake/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ configure_file(
1313
cmd_py = '''
1414
import shutil
1515
shutil.copy2("@0@", "@1@")
16-
'''.format(project_build_root / 'sigc++config.h', meson.current_build_dir())
16+
'''.format(project_build_root / 'sigc++config.h', project_build_root / 'MSVC_NMake')
1717
meson.add_postconf_script(python3.path(), '-c', cmd_py)

0 commit comments

Comments
 (0)