meson: Use the b_vscrt option for selecting the CRT

This option has been available since 0.48, and we should use it
instead of only guessing based on buildtype.
This commit is contained in:
Nirbheek Chauhan
2020-03-12 17:42:27 +05:30
parent e7cfe62e73
commit b462e2c80c
2 changed files with 13 additions and 5 deletions

View File

@@ -105,7 +105,7 @@ if not dbus1_dep.found()
# MSVC: Search for the DBus library by the configuration, which corresponds
# to the output of CMake builds of DBus. Note that debugoptimized
# is really a Release build with .PDB files.
if buildtype == 'debug'
if vs_crt == 'debug'
dbus1_dep = cc.find_library('dbus-1d', required : false)
else
dbus1_dep = cc.find_library('dbus-1', required : false)