Skip to content

Commit

Permalink
Merge pull request agauniyal#130 from neheb/patch-1
Browse files Browse the repository at this point in the history
fix meson
  • Loading branch information
agauniyal authored Jul 1, 2022
2 parents a083cae + 9209b59 commit 22345aa
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ project('rang', 'cpp', version : '3.2.0',

inc = include_directories('include')

doctest = dependency('doctest')
subdir('test')
rang_dep = declare_dependency(include_directories:inc)

run_target('cppcheck', command : ['cppcheck', '--project=' +
join_paths(meson.build_root(), 'compile_commands.json')])
doctest = dependency('doctest', required: false)
if doctest.found()
subdir('test')
endif

cppcheck = find_program('cppcheck', required: false)
if cppcheck.found()
run_target('cppcheck', command : ['cppcheck', '--project=' +
join_paths(meson.build_root(), 'compile_commands.json')])
endif

0 comments on commit 22345aa

Please sign in to comment.