From 499b21299f9c312d5be670ca6b228c46d5f16d3e Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 23 Jul 2024 11:57:58 +0300 Subject: [PATCH] Fix CMake project tests. --- mesonbuild/cmake/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/cmake/common.py b/mesonbuild/cmake/common.py index ca449a668937..e3ba76b9e6e4 100644 --- a/mesonbuild/cmake/common.py +++ b/mesonbuild/cmake/common.py @@ -52,7 +52,7 @@ ] def cmake_is_debug(env: 'Environment') -> bool: - if env.coredata.optstore.has_option('b_vscrt'): + if 'b_vscrt' in env.coredata.optstore: is_debug = env.coredata.optstore.get_value_for('buildtype') == 'debug' if env.coredata.optstore.get_value_for('b_vscrt') in {'mdd', 'mtd'}: is_debug = True