Skip to content

Commit

Permalink
cmake --target takes one argument, not two (#105)
Browse files Browse the repository at this point in the history
Adjust README so that we can work with CMake versions before 3.15
  • Loading branch information
Habbie committed Nov 3, 2021
1 parent 06e7946 commit 3f0eb42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ To build Luau tools or tests yourself, you can use CMake on all platforms, or al
```sh
mkdir cmake && cd cmake
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI --config RelWithDebInfo
cmake --build . --target Luau.Repl.CLI --config RelWithDebInfo
cmake --build . --target Luau.Analyze.CLI --config RelWithDebInfo
```

To integrate Luau into your CMake application projects, at the minimum you'll need to depend on `Luau.Compiler` and `Luau.VM` projects. From there you need to create a new Luau state (using Lua 5.x API such as `lua_newstate`), compile source to bytecode and load it into the VM like this:
Expand Down

0 comments on commit 3f0eb42

Please sign in to comment.