Skip to content

Commit a6537fe

Browse files
authored
Fix broken Meson build when SQLITECPP_DISABLE_STD_FILESYSTEM is set (#560)
Enabling the `SQLITECPP_DISABLE_STD_FILESYSTEM` Meson option appended to an undefined `sqlitecpp_cxx_flags` variable, so the configure step erred out instead of defining the macro. Append to `sqlitecpp_args`, matching every other option branch, so the flag reaches the compiler.
2 parents 4ee4be1 + af616e9 commit a6537fe

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,3 +311,4 @@ Version 3.4.0 - 2026 ???
311311
- Fix Database::getHeaderInfo() signed-shift UB and use fixed-width types for the Header struct (#558)
312312
- Fix Savepoint destructor to catch all exceptions and track rollback state to avoid std::terminate (#559)
313313
- Fix Transaction destructor to catch all exceptions to avoid std::terminate (#559)
314+
- Fix the Meson build when the SQLITECPP_DISABLE_STD_FILESYSTEM option is enabled (#560)

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ endif
129129

130130
## C++17 disable the support for std::filesystem (by default off)
131131
if get_option('SQLITECPP_DISABLE_STD_FILESYSTEM')
132-
sqlitecpp_cxx_flags += ['-DSQLITECPP_DISABLE_STD_FILESYSTEM']
132+
sqlitecpp_args += ['-DSQLITECPP_DISABLE_STD_FILESYSTEM']
133133
endif
134134

135135
## get the user option for the SQLITECPP_DISABLE_SQLITE3_EXPANDED_SQL

0 commit comments

Comments
 (0)