Skip to content

Commit e192e47

Browse files
authored
meson: optionally depend on c++ (#124)
This fix is needed to allow building with toolchains which lack c++.
1 parent e35e230 commit e192e47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project('inih',
2-
['c','cpp'],
2+
['c'],
33
default_options : ['default_library=static'],
44
license : 'BSD-3-Clause',
55
)
@@ -83,6 +83,7 @@ inih_dep = declare_dependency(
8383

8484
#### INIReader ####
8585
if get_option('with_INIReader')
86+
add_languages('cpp')
8687
inc_INIReader = include_directories('cpp')
8788

8889
lib_INIReader = library('INIReader',

0 commit comments

Comments
 (0)