use c++14 on windows

on windows may show an error in xstddef if c++11 is used
this is a workarround for that issue
"deduced return types are a C++14 extension"
This commit is contained in:
Jonathan Guzmán 2022-04-19 21:59:52 -06:00
parent 179ef091c6
commit 9f5d446e36
No known key found for this signature in database
GPG Key ID: C2956F1668BA042A

View File

@ -84,7 +84,14 @@ if not (host_machine.system() == 'windows' and cxx.get_id() == 'msvc')
'-Wno-long-long',
]
endif
## using MSVC headers requires c++14, if not will show an error on xstddef as:
## 'auto' return without trailing return type; deduced return types are a C++14 extension
if host_machine.system() == 'windows'
message('[WINDOWS] using c++14 standard')
sqlitecpp_opts += [
'cpp_std=c++14',
]
endif
# Options relative to SQLite and SQLiteC++ functions
if get_option('SQLITE_ENABLE_COLUMN_METADATA')