]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
meson msvc build fix 2101/head
authorBimba Shrestha <bimbashrestha@fb.com>
Fri, 1 May 2020 14:04:09 +0000 (09:04 -0500)
committerBimba Shrestha <bimbashrestha@fb.com>
Fri, 1 May 2020 14:04:09 +0000 (09:04 -0500)
build/meson/meson.build

index 121811e7265816d131fdd43112d8b4a8d5c8ffa6..970cf3c92b93e826924e842b87ae05158d9a9890 100644 (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'])