Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To make CLion execute CMake-configured builds in a Conda environment, follow these steps:

  1. Open the CLion project that you want to configure with Conda.

  2. Click on the File menu and select Settings.

  3. In the Settings window, navigate to Build, Execution, Deployment > Toolchains.

  4. Click on the + icon to add a new Toolchain.

  5. Select Conda from the list of available toolchains.

  6. Choose the Conda environment you want to use and click OK.

  7. CLion will automatically configure the CMake settings for the selected Conda environment.

  8. Build and run your project in CLion to verify that it is using the Conda environment.

Note: If you are using a custom CMake configuration, you may need to add additional flags to specify the Conda environment. Consult the Conda documentation for more information.