Skip to content

Commit

Permalink
doc: update CPM in README with OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Oct 14, 2024
1 parent f925e7f commit 7f6c574
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,16 @@ After [adding cpm to your project](https://github.com/cpm-cmake/CPM.cmake?tab=re
```cmake
include(cmake/CPM.cmake)
CPMAddPackage("gh:ToruNiina/[email protected]")
CPMAddPackage("gh:ToruNiina/[email protected]")
# OR
CPMAddPackage(
NAME toml11
GITHUB_REPOSITORY "ToruNiina/toml11"
VERSION 4.2.0
OPTIONS "TOML11_PRECOMPILE ON" # to pre-compile
)
add_executable(main main.cpp)
target_link_libraries(main PUBLIC toml11::toml11)
Expand Down

0 comments on commit 7f6c574

Please sign in to comment.