Change project root
When you open a CMake project, CLion treats the location of the top CMakeLists.txt as the project root directory. When you create a new project, CLion also places the CMakeLists.txt file under the root.
However, your project may have a different structure: for example, your main CMakeLists.txt script can be located in some subdirectory (like prj_dir/main). For such cases, use the command to explicitly point CLion to the directory that you want to be considered as root.
Last modified: 25 July 2022