Skip to content

Commit 87f909f

Browse files
committed
Update meson.build to use it as a subproject dependency
Extended to also cover the use-case in https://github.com/jpakkane/cppfront Signed-off-by: KaruroChori <[email protected]>
1 parent 64914bd commit 87f909f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ project(
88

99
threads_dep = dependency('threads', required : true)
1010

11-
executable('cppfront', './source/cppfront.cpp',
11+
cppfront = executable('cppfront', './source/cppfront.cpp',
1212
cpp_args : [
1313
'-Wall',
1414
'-Wextra',
@@ -28,3 +28,6 @@ install_headers([
2828
'./include/cpp2regex.h2',
2929
'./include/cpp2util.h'
3030
])
31+
32+
meson.override_find_program('cppfront', cppfront)
33+
cpp2_dep = declare_dependency(include_directories: 'include')

0 commit comments

Comments
 (0)