You can use CMake-specific macros when setting up run/debug configurations and external tools (for example, to use a project-related path).
Click
in the field where you want to insert a macro and select it from the list:
![CMake macros CMake macros](https://resources.jetbrains.com/help/img/idea/2024.1/cl_cmake_macros.png)
Last modified: 11 February 2024