WSL中cmake构建失败--configure_file Problem configuring file

  1. 在/ etc /中使用以下文本创建一个名为wsl.conf的文件
 # /etc/wsl.conf
[automount]
options = "metadata"
enabled = true
  1. 重启wsl
  • 查看分发版名称
> wsl.exe --list
适用于 Linux 的 Windows 子系统分发版:                                                                                   Ubuntu-20.04 (默认) 
  • 重新启动
> wsl.exe -t Ubuntu-20.04

经过以上步骤之后,在visul studio中,远程调试cmake项目不再报configure_file错误

猜你喜欢

转载自blog.csdn.net/sinat_36304757/article/details/124673911