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

后端 未结 8 1447
说谎
说谎 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:36

    Just make the directory read-only by the people/processes doing the builds. Have a separate process that checks out to the directory from source control (you are using source control, right?), then makes it read-only.

提交回复
热议问题