Skip to content

Commit 4caa717

Browse files
fanc999-1kjellahl
authored andcommitted
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'.
1 parent 82005b8 commit 4caa717

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy