Logo

dev-resources.site

for different kinds of informations.

Install CMake on Windows

Published at
3/18/2023
Categories
cmake
install
mariadb
apache
Author
arun3sh
Categories
4 categories in total
cmake
open
install
open
mariadb
open
apache
open
Author
7 person written this
arun3sh
open
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, 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


Enter fullscreen mode Exit fullscreen mode

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.

cmake Article's
30 articles in total
Favicon
Fixing libdc1394.so.22: cannot open shared object file (ใ… ๏นใ… )
Favicon
Automate Versioning with Git and CMake
Favicon
vcpkg - how to modify dependencies
Favicon
Getting started with GoogleTest and CMake
Favicon
Building a Desktop C++ Barcode Scanner with Slimmed-Down OpenCV and Webcam
Favicon
Use cosmocc to crossโ€compile a CMake project
Favicon
Improve Productivity with CMake and Compiler Cache Integration
Favicon
Conan: Your Embedded Cross-Compilation Champion
Favicon
Streamlining STM32 Projects: VS Code, CMake and clangd
Favicon
Easily add packages to CMake with CPM
Favicon
Jolt Physics raylib: trying 3D C++ Game Physics Engine
Favicon
Using raylib with Dear ImGui: Game Dev Debugging UI
Favicon
Using Jolt with flecs & Dear ImGui: Game Physics Introspection
Favicon
codemapper: join dev team of this sources analysis tool (C++/Qt5)
Favicon
CMake on SMT32 | Episode 8: build with Docker
Favicon
CMake on SMT32 | Episode 7: unit tests
Favicon
[04/52] MOAR CMAKEZ!
Favicon
How to use Flatbuffers in a C++ project with Conan?
Favicon
[03/52] - CMake and Git Submodules: More Advanced Cases
Favicon
get_cmake_version raise SKBuildError(msg) from err
Favicon
Basic C++ Unit Testing with GTest, CMake, and Submodules
Favicon
Felt Cute, Might git rm --rf
Favicon
Install CMake on Windows
Favicon
Maximizing Automation and Scripting in CMake for Efficient Software Development
Favicon
Include custom CMake modules
Favicon
Build a project on Windows 11 using MinGW
Favicon
Cleanup my dependency management with vcpkg
Favicon
CMake cheat sheet!
Favicon
CPM.cmake to make CMake's FetchContent easier
Favicon
The SYSTEM property from CMake 3.25

Featured ones: