Skip to content

Commit c15ee9d

Browse files
committed
Add current dir to include directories when compiling resource
Fixes #15206
1 parent d641563 commit c15ee9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mesonbuild/modules/windows.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ def compile_resources(self, state: 'ModuleState',
149149
build.IncludeDirs('', [], False, [os.path.join('@BUILD_ROOT@', self.interpreter.backend.get_target_dir(d))])
150150
])
151151
include_directories = self.interpreter.extract_incdirs(kwargs)
152+
self_dir = build.IncludeDirs(state.subdir, ['.'], False)
153+
if self_dir not in include_directories:
154+
include_directories.append(self_dir)
152155
extra_args += state.get_include_args(include_directories)
153156

154157
rescomp, rescomp_type = self._find_resource_compiler(state)

0 commit comments

Comments
 (0)