Merge pull request #2101 from bimbashrestha/meson

[build] fix meson build issue
This commit is contained in:
Bimba Shrestha 2020-05-01 12:52:37 -05:00 committed by GitHub
commit 0eaaa4d3a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,7 @@ zstd_docdir = join_paths(zstd_datadir, 'doc', meson.project_name())
# Built-in options
use_debug = get_option('debug')
buildtype = get_option('buildtype')
default_library_type = get_option('default_library')
# Custom options
debug_level = get_option('debug_level')
@ -121,7 +122,7 @@ elif cc_id == compiler_msvc
if use_multi_thread
msvc_compile_flags += '/MP'
endif
if enable_static_runtime
if use_static_runtime
msvc_compile_flags += '/MT'
endif
add_project_arguments(msvc_compile_flags, language: ['c', 'cpp'])