From 3a4f9ce7adeabf9e2a71dc3b2d8050b4254826d3 Mon Sep 17 00:00:00 2001 From: Peter Csajtai Date: Wed, 21 Aug 2024 18:51:00 +0200 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 1177156..104c45d 100644 --- a/README.md +++ b/README.md @@ -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: