CLion 2024.3 Help

Python interpreter for CMake projects

CLion's CMake integration includes the Python plugin. This means that when you have a Python interpreter configured for your project, CMake picks it up along with all the Python-related environment variables.

Settings for Python integration with CMake

  • Python integration with CMake is controlled by two options:

    1. the IDE-wide one in Advanced Settings,

    2. the project-wide one in Settings | Build, Execution, CMake | Python Integration.

    Both the project-wide and the IDE-wide options are enabled by default.

    Upon any change in these settings, CLion performs CMake cache reset and project reload.

Disable Python integration for the current CMake project

  1. Go to Settings | Build, Execution, CMake | Python Integration.

  2. Clear the Pass Python interpreter to CMake checkbox.

    Disabling Python integration for the current project

Disable Python integration for all CMake projects

  1. Go to Settigns | Advanced Settings.

  2. In the CMake section, clear the Pass Python interpreter to CMake checkbox.

    Disabling Python integration for all projects
Last modified: 04 April 2024