From 3f0eb426c9461b40ac1c16879bc6ea6b925d3709 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Wed, 3 Nov 2021 22:37:15 +0100 Subject: [PATCH] cmake --target takes one argument, not two (#105) Adjust README so that we can work with CMake versions before 3.15 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7424e2e..116f92a 100644 --- a/README.md +++ b/README.md @@ -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: