With cmake, how would you disable in-source builds?

后端 未结 8 1240
说谎
说谎 2020-12-28 12:21

I want to disallow people from cluttering our source tree with generated CMake files... and, more importantly, disallow them from stepping on existing Makefiles

8条回答
  •  隐瞒了意图╮
    2020-12-28 12:53

    You can configure your .bashrc file like this one

    Look at the functions cmakekde and kdebuild. Set BUILD and SRC env. variables and edit these functions according to your needs. This will build only in buildDir rather than srcDir

提交回复
热议问题