Skip to content

Commit a33fce8

Browse files
committed
Update README.md
1 parent ca8b5ba commit a33fce8

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

README.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,23 @@ provides the ability to **parse**, **compare**, and **increment** semantic versi
3333
FetchContent_MakeAvailable(cpp-semver)
3434
```
3535

36-
> To use the lib as a C++20 module, you have to turn the `SEMVER_BUILD_MODULE` option `ON`:
37-
> ```cmake
38-
> set(SEMVER_BUILD_MODULE ON)
39-
>
40-
> FetchContent_Declare(#[[...]])
41-
> ```
42-
> Then you can import the package:
43-
> ```cpp
44-
> import semver;
45-
> ```
46-
4736
This will produce the target `semver` which you can link against the typical way:
4837

4938
```cmake
5039
target_link_libraries(your_target_name PRIVATE semver)
5140
```
41+
42+
To use the lib as a **C++20 module**, you have to turn the `SEMVER_BUILD_MODULE` option `ON`:
43+
```cmake
44+
set(SEMVER_BUILD_MODULE ON)
45+
46+
FetchContent_Declare(#[[...]])
47+
```
48+
Then you can import the package:
49+
```cpp
50+
import semver;
51+
```
52+
5253
3. With `vcpkg`
5354

5455
If you are using vcpkg for external dependencies, then you can install the package with:

0 commit comments

Comments
 (0)