dzn_flags += '-DVK_USE_PLATFORM_WIN32_KHR'
endif
+if meson.version().version_compare('>= 0.60')
+ cpp_std = 'cpp_std=c++20'
+elif cpp.get_id() == 'msvc'
+ cpp_std = 'cpp_std=c++latest'
+else
+ cpp_std = 'cpp_std=c++2a'
+endif
+
libvulkan_dzn = shared_library(
'vulkan_dzn',
[libdzn_files, dzn_entrypoints, sha1_h],
gnu_symbol_visibility : 'hidden',
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
name_prefix : host_machine.system() == 'windows' ? '' : 'lib',
- install : true
+ install : true,
+ override_options: [cpp_std]
)
icd_file_name = 'libvulkan_dzn.so'