]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
INSTALL-CMAKE.md: explain `cmake -G <generator-name>`
authorJay Satiro <raysatiro@yahoo.com>
Sun, 31 Mar 2024 06:55:50 +0000 (02:55 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 1 Apr 2024 22:51:06 +0000 (18:51 -0400)
- 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

index 74c8094656ec2c274105c84c680e27321a2c0def..37231f9e4542ffa8d295f73271161d7547cdbb31 100644 (file)
@@ -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 <generator-name>`. 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`