rwols / CMakeBuilder

Configure, build and test a CMake project right from within Sublime Text 3.
MIT License
30 stars 14 forks source link

CMakeBuilder does not detect installed cmake binary. #18

Closed meghadri closed 3 years ago

meghadri commented 4 years ago

Clean install of SublimeText3 on MacOS Catalina (10.15.7 (19H15)). Opened Project folder. e.g. The issue replicates on this repo. https://github.com/LearningByExample/ModernCppCI.git Tools -> CMakeBuilder menu has only two options 'Diagnose (...)' and 'New Project' Diagnosis results in the following output. ╒═══════════════╤═════════╤══════════════════╕ │ CHECK │ VALUE │ SUGGESTION/FIX │ ╞═══════════════╪═════════╪══════════════════╡ │ cmake present │ 0 │ Install cmake │ ╘═══════════════╧═════════╧══════════════════╛

The PATH env variable to include the location of the cmake executable is set in ~/.bashrc

Probably something simple that I am missing?

Thanks.

rwols commented 4 years ago

Yes, you need to update your $PATH in

meghadri commented 4 years ago

The location of the cmake binary is on the path. Added it in ~/.profile (using bash). No change in output.

rwols commented 4 years ago

Did you source your profile again in bash and then restarted ST?

subl ~/.profile
source ~/.profile
subl .

(or restart Terminal/iTerm)

rwols commented 4 years ago

Also, please open the console in ST with View > Show Console, and run the following in that console:

import os; os.environ["PATH"]
rwols commented 3 years ago

I'll assume this is fixed. Ping me if you're still blocked on this.