CLion 2016.3 Help

Reloading Project

When a CMakeLists.txt file changes, CLion shows a banner on top of the editor:

/help/img/idea/cl_reload_cmake.png

As you see, CLion suggests to reload the current project using the following options:

  • Reload changes
  • Enable Auto-reload

Choose the first option to reload the current project manually. In this case, the subsequent editing on the file CMakeLists.txt will lead to showing the same banner.

The second option results in selecting the check box Automatically reload CMake project on editing in the CMake Settings page of Settings. All the subsequent changes of the file CMakeLists.txt will cause the automatic reload of the current project and will pass unnoticed.

It is possible to make CLion always reload automatically. This is done in one of the following ways:

  • Open Settings, and under the Build, Execution, Deployment node click the CMake Settings page. Then select the check box Automatically reload CMake project on editing.
  • Click /help/img/idea/search_everywhere.png and type cmake. Click the line with the required action:
    /help/img/idea/cl_cmake_reload.png

In addition, CLion allows you to reload the project using the main menu. To reload a project from the main menu, do one of the following:

  • On the main menu, choose File | Reload Project
  • On the main menu, choose Tools | CMake | Reload Project
  • In CMake tool window, click the /help/img/idea/icon_refresh.png button
Besides, a project is reloaded when you perform the reset CMake cache action.

See Also

Languages, Frameworks and Technologies:

Reference:

External Links:

Last modified: 22 November 2016