Browse Source

tutorials/cmake/commands: example to specify the compiler

Daniel-Constantin Mierla 9 tháng trước cách đây
mục cha
commit
78605eda63
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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) |
 | `OM`   | `make Q=0` |
 | `CM`   | `make VERBOSE=on` |
+| `---`  | Specify the compiler (example with `clang`) |
+| `OM`   | `make CC=clang` |
+| `CM`   | `cmake -DCMAKE_C_COMPILER="clang" ..` |