Skip to content

Commit a22f5b7

Browse files
authored
Require C++ only for the host machine; bump project version to 59 (#191)
* Bump version to 59, after the fact * Require C++ only for the host machine In cross builds, we don't build any C++ code for the build machine. Fixes Meson warning: meson.build:106: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
1 parent 7434795 commit a22f5b7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

meson.build

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project('inih',
22
['c'],
33
license : 'BSD-3-Clause',
4-
version : '58',
4+
version : '59',
55
default_options : ['cpp_std=c++11'],
66
meson_version: '>=0.56.0'
77
)
@@ -103,7 +103,10 @@ subdir('tests')
103103

104104
#### INIReader ####
105105
if get_option('with_INIReader')
106-
add_languages('cpp')
106+
add_languages(
107+
'cpp',
108+
native : false
109+
)
107110
inc_INIReader = include_directories('cpp')
108111

109112
src_INIReader = files(join_paths('cpp', 'INIReader.cpp'))

0 commit comments

Comments
 (0)