CLion 中添加 release 配置
CLion 自 2016.3 版本开始更改了 CMake 的工作流程, CLion 不再直接构建 CMake 支持的 4 种配置模式。
用户可以通过 File > Settings... > Build, Execution, Deployment > CMake 面板添加其余三种配置。
点 + 号,然后在 Build type 下拉栏中选择所需的类型。
参考文献
[1] https://stackoverflow.com/questions/41116797/clion-2016-3-switch-to-release-configuration