How to fix cmake is not recognized as an internal and external Command Error in Terminal
1 views
Jun 7, 2025
Buy the full source code of application here:
View Video Transcript
0:00
uh hello guys uh welcome to this video
0:02
so in this video I will show you if you
0:04
are getting the error message if you
0:06
typing cmake and if you're getting this
0:10
error cmake is not recognized as an
0:12
internal or external command uh
0:15
potentially the reason is that you
0:16
haven't added cmake inside your
0:19
environment path variable so just we
0:22
need to open the location where you
0:24
installed cmake by default it's stored
0:27
in your C drive
0:29
just open the folder C program
0:33
files inside that folder we will cm make
0:37
just search for this folder
0:40
CMake just open this folder and then
0:43
open the bin folder so here all the
0:47
executables will be present cmake you
0:50
just see if you try to open terminal
0:53
here type the same command you will see
0:56
the cmake command will perfectly
1:00
execute so now what we need to do we
1:05
need to rightclick this
1:07
location copy this location entire
1:10
location and just open your environment
1:12
variable and just go to the system path
1:18
variable just click on edit add a new
1:22
entry and simply paste this entire
1:29
path just click okay okay and just
1:32
restart your terminal and just type the
1:35
same command right here
1:37
cmake now you will see the command will
1:40
be successful so in this easy way you
1:43
can fix that error message by adding it
1:46
to the environment variable so also
1:49
visit my website freemediattools.com
1:52
uh which contains thousands of tools