Quellcode durchsuchen

tutorials/cmake/commands: example to specify the compiler

Daniel-Constantin Mierla vor 9 Monaten
Ursprung
Commit
78605eda63
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3 0
      docs/tutorials/cmake/commands.md

+ 3 - 0
docs/tutorials/cmake/commands.md

@@ -51,3 +51,6 @@ Legend for the table:
 | `---`  | Compile with verbose output (quiet off) |
 | `---`  | Compile with verbose output (quiet off) |
 | `OM`   | `make Q=0` |
 | `OM`   | `make Q=0` |
 | `CM`   | `make VERBOSE=on` |
 | `CM`   | `make VERBOSE=on` |
+| `---`  | Specify the compiler (example with `clang`) |
+| `OM`   | `make CC=clang` |
+| `CM`   | `cmake -DCMAKE_C_COMPILER="clang" ..` |