Shatur / neovim-cmake

CMake integration for Neovim
GNU General Public License v3.0
87 stars 19 forks source link

Allow customizing of CMake executable #20

Closed Oddegamra closed 2 years ago

Oddegamra commented 2 years ago

Describe the problem or limitation you are having Currently, neovim-cmake always runs cmake when invoking CMake. This is problematic for systems that have multiple versions of CMake, or CMake not in PATH. For example, on Centos 7, the default /usr/bin/cmake version is CMake 2.x. For newer versions, the cmake3 package has to be installed, which must be called as cmake3.

Describe the solution you'd like Ideally, a new parameter should be added to the setup() table, allowing users to customize the name and/or path of CMake. This could be either the absolute path to the CMake executable, or simply the name of the executable when it is available in PATH.