소스 검색

tutorials/cmake/commands: example to specify the compiler

Daniel-Constantin Mierla 9 달 전
부모
커밋
78605eda63
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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" ..` |