mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
doc: update example tag/version
This commit is contained in:
@@ -126,7 +126,7 @@ include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
toml11
|
||||
GIT_REPOSITORY https://github.com/ToruNiina/toml11.git
|
||||
GIT_TAG v4.1.0
|
||||
GIT_TAG v4.3.0
|
||||
)
|
||||
FetchContent_MakeAvailable(toml11)
|
||||
|
||||
@@ -141,14 +141,14 @@ After [adding cpm to your project](https://github.com/cpm-cmake/CPM.cmake?tab=re
|
||||
```cmake
|
||||
include(cmake/CPM.cmake)
|
||||
|
||||
CPMAddPackage("gh:ToruNiina/toml11@4.2.0")
|
||||
CPMAddPackage("gh:ToruNiina/toml11@4.3.0")
|
||||
|
||||
# OR
|
||||
|
||||
CPMAddPackage(
|
||||
NAME toml11
|
||||
GITHUB_REPOSITORY "ToruNiina/toml11"
|
||||
VERSION 4.2.0
|
||||
VERSION 4.3.0
|
||||
OPTIONS "TOML11_PRECOMPILE ON" # to pre-compile
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user