Install CMake on Windows

I am working on a project which require me to build and compile MariaDB database. To build MariaDB, CMake is required. CMake will first verify on which operating system, it is being run, then it will create and\or copy the appropriate directories, file…


This content originally appeared on DEV Community and was authored by Arunesh Choudhary

I am working on a project which require me to build and compile MariaDB database. To build MariaDB, CMake is required. CMake will first verify on which operating system, it is being run, then it will create and\or copy the appropriate directories, files on the operating system.

CMake

It is an open source software under the BSD-3-Clause license. C++ compiler is required to run CMake build system. CMake is used in the software development industry for build automation, testing, packaging and installation of software.

CMake is not a build system, it creates the build system files for other operating systems, which includes support for directory hierarchy.

Let's install CMake on windows.

Download the code

https://cmake.org/download/

Choose executable from the list
At this time, the current version is 3.26.0

https://github.com/Kitware/CMake/releases/download/v3.26.0/cmake-3.26.0-windows-x86_64.msi

Install CMake from the executable

Step 1 Double click on the downloaded executable file

Step 2 Follow the instructions on the screen

cmake_installation_windows_step_1

cmake_installation_windows_step_2

Alert : Make sure to add CMake to the PATH

cmake_installation_windows_step_3

cmake_installation_windows_step_4

cmake_installation_windows_step_5

cmake_installation_windows_step_6

cmake_installation_windows_step_7

Step 2 Make sure CMake is installed on the system

Reboot your Machine.

# Command 
where cmake
# Output
C:\Program Files\CMake\bin\cmake.exe

CMake is properly installed on your system.

Disclaimer: I have been working on a project which require me to install, configure, troubleshoot various packages on multiple Operating system. If you find any issue, please reach out to me.


This content originally appeared on DEV Community and was authored by Arunesh Choudhary


Print Share Comment Cite Upload Translate Updates
APA

Arunesh Choudhary | Sciencx (2023-03-18T20:13:09+00:00) Install CMake on Windows. Retrieved from https://www.scien.cx/2023/03/18/install-cmake-on-windows/

MLA
" » Install CMake on Windows." Arunesh Choudhary | Sciencx - Saturday March 18, 2023, https://www.scien.cx/2023/03/18/install-cmake-on-windows/
HARVARD
Arunesh Choudhary | Sciencx Saturday March 18, 2023 » Install CMake on Windows., viewed ,<https://www.scien.cx/2023/03/18/install-cmake-on-windows/>
VANCOUVER
Arunesh Choudhary | Sciencx - » Install CMake on Windows. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/03/18/install-cmake-on-windows/
CHICAGO
" » Install CMake on Windows." Arunesh Choudhary | Sciencx - Accessed . https://www.scien.cx/2023/03/18/install-cmake-on-windows/
IEEE
" » Install CMake on Windows." Arunesh Choudhary | Sciencx [Online]. Available: https://www.scien.cx/2023/03/18/install-cmake-on-windows/. [Accessed: ]
rf:citation
» Install CMake on Windows | Arunesh Choudhary | Sciencx | https://www.scien.cx/2023/03/18/install-cmake-on-windows/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.