Open LAK132 opened 2 years ago
it appears this is being caused by the
WARNING: CMake: path <path> is inside the root project but not inside the subproject.
WARNING: --> Ignoring. This can lead to build errors.
handling code
looks like I can use
spirv_tools_opts.append_compile_args(
'cpp',
'-I'+(meson.source_root()/'subprojects/SPIRV-Headers/include'),
)
as a workaround
I understand that setting up dependencies between subprojects behind meson's back is a recipe for disaster, perhaps this could instead be fixed with something like
cmake.subproject('SPIRV-Tools', options: spirv_tools_opts, dependencies: [spirv_headers_dep])
Describe the bug
The meson.build produced from the cmake module is missing a number of the include directories specified in the original cmake build scripts. They (
subprojects/SPIRV-Headers/include
in this case) appear in both the trace output:and json output:
but are missing from the final meson.build:
this is resulting in build failures as it can't find all the headers needed to build the given targets.
To Reproduce
system parameters