From 3034ae389e64022589fcde3812e4273dbd4cebb6 Mon Sep 17 00:00:00 2001 From: srydell Date: Wed, 9 Mar 2022 15:35:55 +0100 Subject: [PATCH] Change the documentation regarding downloading tolc to be the same as tolc-demo --- docs/public/introduction.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/public/introduction.md b/docs/public/introduction.md index a1c1db3..c1f27fb 100644 --- a/docs/public/introduction.md +++ b/docs/public/introduction.md @@ -29,17 +29,18 @@ FetchContent_Declare( ) FetchContent_Populate(tolc_entry) +set(tolc_DIR ${tolc_entry_SOURCE_DIR}/lib/cmake/tolc) find_package( tolc CONFIG - PATHS - ${tolc_entry_SOURCE_DIR} - REQUIRED) + REQUIRED +) tolc_create_bindings( TARGET MyLib LANGUAGE wasm - OUTPUT wasm-bindings) + OUTPUT wasm-bindings +) ``` Assuming your library is called `MyLib`, and the bindings should be generated to the directory `wasm-bindings`.