Skip to content

Commit

Permalink
Download Metalang99 from the GitHub releases
Browse files Browse the repository at this point in the history
  • Loading branch information
hirrolot committed Dec 1, 2021
1 parent a8431e1 commit 8564372
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ include(FetchContent)

FetchContent_Declare(
metalang99
GIT_REPOSITORY https://github.com/Hirrolot/metalang99.git
GIT_TAG master # TODO: change it to vx.y.z.
URL https://github.com/Hirrolot/metalang99/archive/refs/tags/v1.13.0.tar.gz
)

FetchContent_MakeAvailable(metalang99)
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,7 @@ include(FetchContent)
FetchContent_Declare(
interface99
GIT_REPOSITORY https://github.com/Hirrolot/interface99.git
# Always use version numbers instead of pulling directly from master!
GIT_TAG v1.2.3
URL https://github.com/Hirrolot/interface99/archive/refs/tags/v1.2.3.tar.gz # v1.2.3
)
FetchContent_MakeAvailable(interface99)
Expand All @@ -195,7 +193,7 @@ add_subdirectory(interface99)
target_link_libraries(MyProject interface99)
```

In the latter case, I encourage you to download Interface99 as a [Git submodule] to be able to update it with `git submodule update --remote` when necessary. Also, note that by default, Interface99's `CMakeLists.txt` downloads Metalang99 [v1.12.0](https://github.com/Hirrolot/metalang99/releases/tag/v1.12.0) from the Git repository; if you want to override this behaviour, you can do so by invoking [`FetchContent_Declare`] earlier.
In the latter case, I encourage you to download Interface99 as a [Git submodule] to be able to update it with `git submodule update --remote` when necessary. Also, note that by default, Interface99's `CMakeLists.txt` downloads Metalang99 [v1.13.0](https://github.com/Hirrolot/metalang99/releases/tag/v1.13.0) from the GitHub release archives; if you want to override this behaviour, you can do so by invoking [`FetchContent_Declare`] earlier.

[Git submodule]: https://git-scm.com/book/en/v2/Git-Tools-Submodules
[`FetchContent_Declare`]: https://cmake.org/cmake/help/latest/module/FetchContent.html#command:fetchcontent_declare
Expand Down

0 comments on commit 8564372

Please sign in to comment.