How to set cmake CXX variable on windows

前端 未结 5 869
闹比i
闹比i 2021-01-18 01:35

I am getting the following error

Working on: Microsoft Windows [Versión 6.1.7601]

ErrorS:

CMake Warning at CMakeLists.txt:4 (project):
  To u         


        
5条回答
  •  醉酒成梦
    2021-01-18 02:26

    You need to run the batch script provided by Visual Studio to set up your environment before running cmake. It's under X:\Visual\Studio\Dir\VC\vcvarsall.bat. There should also be a shortcut in the start menu for "Visual Studio Command Prompt" that will open a prompt and automatically run vcvarsall.bat.

提交回复
热议问题