Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望当我为某个 CMakeLists.txt 运行 cmake 时,“--warn-uninitialized”和“--warn-unused-vars”选项会自动打开,而无需实际输入这些选项。
我怎么能那样做?
十分感谢!
我认为你最好的选择是创建一个别名:
alias mycmake='cmake --warn-uninitialized --warn-unused-vars'