mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
doc: update CPM in README with OPTIONS
This commit is contained in:
11
README.md
11
README.md
@@ -141,7 +141,16 @@ After [adding cpm to your project](https://github.com/cpm-cmake/CPM.cmake?tab=re
|
|||||||
```cmake
|
```cmake
|
||||||
include(cmake/CPM.cmake)
|
include(cmake/CPM.cmake)
|
||||||
|
|
||||||
CPMAddPackage("gh:ToruNiina/toml11@4.1.0")
|
CPMAddPackage("gh:ToruNiina/toml11@4.2.0")
|
||||||
|
|
||||||
|
# OR
|
||||||
|
|
||||||
|
CPMAddPackage(
|
||||||
|
NAME toml11
|
||||||
|
GITHUB_REPOSITORY "ToruNiina/toml11"
|
||||||
|
VERSION 4.2.0
|
||||||
|
OPTIONS "TOML11_PRECOMPILE ON" # to pre-compile
|
||||||
|
)
|
||||||
|
|
||||||
add_executable(main main.cpp)
|
add_executable(main main.cpp)
|
||||||
target_link_libraries(main PUBLIC toml11::toml11)
|
target_link_libraries(main PUBLIC toml11::toml11)
|
||||||
|
Reference in New Issue
Block a user