Some problems encountered by cmake configuration

  • Installed VS but, cmake can't find VS

I am using CMake3.26.3 and Visual studio17, and encountered the following error during the configuration process

 The solution is as follows:

  1. First confirm that your VS is installed and the project can be generated
  2. Make sure to check all the options related to CMake in the VS configuration: open the visual studio installer, check several options related to cmake, I see other tutorials, let’s check the option of VS expansion development, click modify, Try again.
  3. If it still doesn’t work, check if your version is selected correctly. For example, if you installed VS2017, then the one selected in this interface is not the first one (I am the one who chose the wrong one)

Guess you like

Origin blog.csdn.net/weixin_51087313/article/details/131123744