mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-12 13:00:38 +00:00
cmake --target takes one argument, not two (#105)
Adjust README so that we can work with CMake versions before 3.15
This commit is contained in:
parent
06e79462d0
commit
3f0eb426c9
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@ To build Luau tools or tests yourself, you can use CMake on all platforms, or al
|
||||||
```sh
|
```sh
|
||||||
mkdir cmake && cd cmake
|
mkdir cmake && cd cmake
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue