Out of Source build呢,就是让Cmake产生的临时垃圾文件,不关乎于项目实际本身的文件放到一个目录里,一般我们把这个目录放在项目根目录(也可以认为是根CmakeLists.txt)下,取名为build。然后cd到build目录,cmake命令一下,注意Cmake命令的最后一个参数(路径参数),要写明: ../

像这样:

cmake -G"NMake Makefiles"  ../

Reference:

http://stackoverflow.com/questions/9680420/looking-for-a-cmake-clean-command-to-clear-up-cmake-output

相关文章:

  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-12-20
  • 2021-06-19
猜你喜欢
  • 2021-11-13
  • 2021-06-21
  • 2021-06-27
  • 2021-05-26
  • 2022-12-23
  • 2021-10-15
  • 2021-07-03
相关资源
相似解决方案