meson msvc build fix
This commit is contained in:
parent
da2748a855
commit
834a8f838a
@ -68,6 +68,7 @@ zstd_docdir = join_paths(zstd_datadir, 'doc', meson.project_name())
|
|||||||
# Built-in options
|
# Built-in options
|
||||||
use_debug = get_option('debug')
|
use_debug = get_option('debug')
|
||||||
buildtype = get_option('buildtype')
|
buildtype = get_option('buildtype')
|
||||||
|
default_library_type = get_option('default_library')
|
||||||
|
|
||||||
# Custom options
|
# Custom options
|
||||||
debug_level = get_option('debug_level')
|
debug_level = get_option('debug_level')
|
||||||
@ -121,7 +122,7 @@ elif cc_id == compiler_msvc
|
|||||||
if use_multi_thread
|
if use_multi_thread
|
||||||
msvc_compile_flags += '/MP'
|
msvc_compile_flags += '/MP'
|
||||||
endif
|
endif
|
||||||
if enable_static_runtime
|
if use_static_runtime
|
||||||
msvc_compile_flags += '/MT'
|
msvc_compile_flags += '/MT'
|
||||||
endif
|
endif
|
||||||
add_project_arguments(msvc_compile_flags, language: ['c', 'cpp'])
|
add_project_arguments(msvc_compile_flags, language: ['c', 'cpp'])
|
||||||
|
Loading…
Reference in New Issue
Block a user