meson: Unconditionally import cmake

This commit is contained in:
Matt Borgerson 2024-12-31 18:14:44 -07:00 committed by mborgerson
parent 72ea0f7157
commit 0554095dcd
1 changed files with 1 additions and 2 deletions

View File

@ -81,6 +81,7 @@ have_ga = get_option('guest_agent') \
have_block = have_system or have_tools have_block = have_system or have_tools
python = import('python').find_installation() python = import('python').find_installation()
cmake = import('cmake')
if cpu not in supported_cpus if cpu not in supported_cpus
host_arch = 'unknown' host_arch = 'unknown'
@ -1198,8 +1199,6 @@ elif targetos == 'linux'
endif endif
if vulkan.found() if vulkan.found()
cmake = import('cmake')
if not libglslang.found() if not libglslang.found()
# FIXME: Get spirv-tools to enable opt. # FIXME: Get spirv-tools to enable opt.
glslang_opts = cmake.subproject_options() glslang_opts = cmake.subproject_options()