diff --git a/CMakeLists.txt b/CMakeLists.txt index 20b831941..1a7d205b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -706,7 +706,8 @@ endif() if(MSVC) target_compile_options(duckdb_java PRIVATE /bigobj - /utf-8) + /utf-8 + /Zc:__cplusplus) else() target_compile_options(duckdb_java PRIVATE -fexceptions) diff --git a/CMakeLists.txt.in b/CMakeLists.txt.in index 7102f8bc9..3aae7149d 100644 --- a/CMakeLists.txt.in +++ b/CMakeLists.txt.in @@ -184,7 +184,8 @@ endif() if(MSVC) target_compile_options(duckdb_java PRIVATE /bigobj - /utf-8) + /utf-8 + /Zc:__cplusplus) else() target_compile_options(duckdb_java PRIVATE -fexceptions)