Skip to content

Commit

Permalink
Change the documentation regarding downloading tolc to be the same as…
Browse files Browse the repository at this point in the history
… tolc-demo
  • Loading branch information
srydell committed Mar 9, 2022
1 parent 1d7caad commit f696d28
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ include(${modules}/Sanitizers.cmake)
include(${modules}/StaticAnalyzers.cmake)

include(${modules}/GetFrontend.cmake)
get_frontend(NAME Frontend.py VERSION v0.4.0)
get_frontend(NAME Frontend.py VERSION latest)
copy_frontend_docs(NAME Frontend.py SRC_DIR ${frontend.py_SOURCE_DIR} COPY_TO
${CMAKE_CURRENT_LIST_DIR}/docs/packaging/docs/python)

get_frontend(NAME Frontend.wasm VERSION v0.4.2)
get_frontend(NAME Frontend.wasm VERSION latest)
copy_frontend_docs(
NAME Frontend.wasm SRC_DIR ${frontend.wasm_SOURCE_DIR} COPY_TO
${CMAKE_CURRENT_LIST_DIR}/docs/packaging/docs/webassembly)
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,10 @@ 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
)
```
Expand Down
6 changes: 3 additions & 3 deletions docs/packaging/docs/guides/translating_a_cpp_library.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ 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
)
```

After the call to `find_package` we are free to use the `CMake` functions available in the `tolc` installation. To create bindings for `Math` we have to call the `tolc_create_bindings` function
Expand Down
6 changes: 3 additions & 3 deletions docs/packaging/docs/installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ 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
)
```

When reconfiguring your project, the `Tolc` `CMake` interface should be available automatically. Note that this requires `CMake 3.15` or later.

0 comments on commit f696d28

Please sign in to comment.