Skip to content

Commit 51e3475

Browse files
authored
feat: install examples for top level builds (#233)
This might be useful for distribution packagers to provide example programs in their packages. Signed-off-by: Sefa Eyeoglu <[email protected]>
1 parent e2bae9d commit 51e3475

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ UTF-8 decoding is performed using a state machine based on Bjoern Hoehrmann's '[
294294
- **[@rbrugo](https://github.com/rbrugo)** - Helped design a new feature
295295
- **[@Reedbeta](https://github.com/Reedbeta)** - Fixed a bug and added additional Visual Studio debugger native visualizers
296296
- **[@Ryan-rsm-McKenzie](https://github.com/Ryan-rsm-McKenzie)** - Add natvis file to cmake install script
297+
- **[@Scrumplex][https://github.com/Scrumplex)** - Tweaked the build scripts
297298
- **[@shdnx](https://github.com/shdnx)** - Fixed a bug on GCC 8.2.0 and some meson config issues
298299
- **[@sneves](https://github.com/sneves)** - Helped fix a number of parser bugs
299300
- **[@sobczyk](https://github.com/sobczyk)** - Reported some bugs

examples/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ foreach example : examples
2424
[ example + '.cpp' ],
2525
cpp_args: example_args,
2626
dependencies: tomlplusplus_dep,
27-
override_options: global_overrides
27+
override_options: global_overrides,
28+
install: not is_subproject
2829
)
2930
]]
3031
endforeach

0 commit comments

Comments
 (0)