c++ccmakeclion

Changing default cmakelists.txt in clion


If i want for example to add extra flags, or to change to the c compiler. Is it even possible? Thanks in advance


Solution

  • To change the default CMakeLists.txt just edit in the settings:

    File -> Settings -> Editor -> File and Code Templates

    enter image description here