From d36c1a769164e509fed08de6910ac395ecaa4a50 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Sun, 31 Mar 2024 02:55:50 -0400 Subject: [PATCH] INSTALL-CMAKE.md: explain `cmake -G ` - Explain that CMake's -G option can be used to specify which build system to generate files for. Example: cmake ../curl -G "MinGW Makefiles" Ref: https://github.com/curl/curl/pull/12224#issuecomment-2026813645 Closes https://github.com/curl/curl/pull/13244 --- docs/INSTALL-CMAKE.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/INSTALL-CMAKE.md b/docs/INSTALL-CMAKE.md index 74c8094656..37231f9e45 100644 --- a/docs/INSTALL-CMAKE.md +++ b/docs/INSTALL-CMAKE.md @@ -66,6 +66,13 @@ If you want to build in the source tree, it is enough to do this: $ cmake . +### Build system generator selection + +You can override CMake's default by using `-G `. For example +on Windows with multiple build systems if you have MinGW-w64 then you could use +`-G "MinGW Makefiles"`. +[List of generator names](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html). + ## Using `ccmake` CMake comes with a curses based interface called `ccmake`. To run `ccmake`