To set the build type to "RelWithDebInfo" in CLion for a Linux project, you can follow these steps:

  1. Open your project in CLion.
  2. In the top-right corner, click on the "Edit Configurations" button (or go to "Run" > "Edit Configurations").
  3. In the left panel of the "Run/Debug Configurations" window, select the configuration you want to modify (e.g., "CMake Application").
  4. In the right panel, under the "Configuration" tab, find the "CMake options" field.
  5. Add the following line to the "CMake options" field: -DCMAKE_BUILD_TYPE=RelWithDebInfo
  6. Click on the "OK" button to save the changes.
  7. 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

Linux clion set RelWithDebInfo

原文地址: https://www.cveoy.top/t/topic/iNLP 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录