Setting default compiler in CMake

后端 未结 3 1945
深忆病人
深忆病人 2021-01-31 08:11

I\'m using CMake version 2.8 on WinXP SP3. Whenever i run my CMakeLists script by default CMake use Visual Studio 10 compiler. I\'ve tried to do:

SET( CMAKE_CXX_         


        
3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 08:43

    With CMake version 3.15 or later, you can set the CMAKE_GENERATOR environment variable to specify the default generator to be used on your system.

提交回复
热议问题