Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
bates64 committed Sep 20, 2023
1 parent 73efa76 commit 98d3625
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/content/docs/cheerp/guides/cmake.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ CMake projects can be compiled with Cheerp by passing a single additional comman
A CMake toolchain file is provided at `$CHEERP/share/cmake/Modules/CheerpToolchain.cmake`, where the `CHEERP` environment variable is set to the path of your Cheerp installation.

For example:

- On Linux: `export CHEERP=/opt/cheerp`
- On macOS: `export CHEERP=/Applications/cheerp`
- On Windows: `set CHEERP=C:\cheerp`

Then pass the toolchain file when configuring the project.

```bash
cmake -DCMAKE_TOOLCHAIN_FILE=$CHEERP/share/cmake/Modules/CheerpToolchain.cmake .
```

## Compiling to WebAssembly

To compile with `-target cheerp-wasm`, use `CheerpWasmToolchain.cmake`.
To compile with `-target cheerp-wasm`, use `CheerpWasmToolchain.cmake`.

```bash
cmake -DCMAKE_TOOLCHAIN_FILE=$CHEERP/share/cmake/Modules/CheerpWasmToolchain.cmake .
```
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Shell.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface Props {
const { title, description, image } = Astro.props;
---

<!DOCTYPE html>
<!doctype html>
<html lang="en" class="dark">
<head>
<BaseHead
Expand Down

0 comments on commit 98d3625

Please sign in to comment.