Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Aug 21, 2024
1 parent 36600b6 commit 3a4f9ce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ provides the ability to **parse**, **compare**, and **increment** semantic versi
GIT_TAG v0.4.0)
FetchContent_MakeAvailable(cpp-semver)
```
> [!NOTE]\
> To use the lib as a C++20 module, you have to turn the `SEMVER_BUILD_MODULE` option `ON`:
> ```cmake
> set(SEMVER_BUILD_MODULE ON)
>
> FetchContent_Declare(#[[...]])
> ```
> Then you can import the package:
> ```cpp
> import semver;
> ```
This will produce the target `semver` which you can link against the typical way:
Expand Down

0 comments on commit 3a4f9ce

Please sign in to comment.