about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTommy Chiang <oToToT@users.noreply.github.com>2021-05-22 04:21:20 +0800
committerGitHub <noreply@github.com>2021-05-21 22:21:20 +0200
commit5a14ceb504514ba32e419c6399a5550abec68102 (patch)
tree1bc979d45ade9f42de8e8c39aa579b5e5864fa0c
parenta3392baaaa0faf51eb217d9859a6a517987fafc7 (diff)
downloadafl++-5a14ceb504514ba32e419c6399a5550abec68102.tar.gz
Fix cmake target compilation command example (#934)
- Fix typo DCMAKE_C_COMPILERC -> DCMAKE_C_COMPILER.
- Add `cd build` after `mkdir build`.
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 5d5510d2..a6ad6b4f 100644
--- a/README.md
+++ b/README.md
@@ -436,7 +436,7 @@ described in [instrumentation/README.lto.md](instrumentation/README.lto.md).
 ##### cmake
 
 For `cmake` build systems this is usually done by:
-`mkdir build; cmake -DCMAKE_C_COMPILERC=afl-cc -DCMAKE_CXX_COMPILER=afl-c++ ..`
+`mkdir build; cd build; cmake -DCMAKE_C_COMPILER=afl-cc -DCMAKE_CXX_COMPILER=afl-c++ ..`
 
 Note that if you are using the (better) afl-clang-lto compiler you also have to
 set AR to llvm-ar[-VERSION] and RANLIB to llvm-ranlib[-VERSION] - as is