Linux clion set RelWithDebInfo
To set the build type to "RelWithDebInfo" in CLion for a Linux project, you can follow these steps:
- Open your project in CLion.
- In the top-right corner, click on the "Edit Configurations" button (or go to "Run" > "Edit Configurations").
- In the left panel of the "Run/Debug Configurations" window, select the configuration you want to modify (e.g., "CMake Application").
- In the right panel, under the "Configuration" tab, find the "CMake options" field.
- Add the following line to the "CMake options" field:
-DCMAKE_BUILD_TYPE=RelWithDebInfo - Click on the "OK" button to save the changes.
- Now, when you build and run your project, it will be built with the "RelWithDebInfo" build type, which includes optimizations and debugging information.
Note: Make sure you have the appropriate CMakeLists.txt file in your project that handles the different build types
原文地址: https://www.cveoy.top/t/topic/iNLP 著作权归作者所有。请勿转载和采集!