Specify a tag in readme instructions

This commit is contained in:
Jeremy 2023-09-02 21:31:03 -04:00
parent 46ac51bf0e
commit cf0bf6e02d
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -41,7 +41,7 @@ include(FetchContent)
FetchContent_Declare( FetchContent_Declare(
cpptrace cpptrace
GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
GIT_TAG <HASH or TAG> GIT_TAG v0.1.1 # <HASH or TAG>
) )
FetchContent_MakeAvailable(cpptrace) FetchContent_MakeAvailable(cpptrace)
target_link_libraries(your_target cpptrace) target_link_libraries(your_target cpptrace)
@ -60,7 +60,7 @@ information.
```sh ```sh
git clone https://github.com/jeremy-rifkin/cpptrace.git git clone https://github.com/jeremy-rifkin/cpptrace.git
# optional: git checkout <HASH or TAG> git checkout v0.1.1
mkdir cpptrace/build mkdir cpptrace/build
cd cpptrace/build cd cpptrace/build
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=On cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=On
@ -96,7 +96,7 @@ you when installing new libraries.
```ps1 ```ps1
git clone https://github.com/jeremy-rifkin/cpptrace.git git clone https://github.com/jeremy-rifkin/cpptrace.git
# optional: git checkout <HASH or TAG> git checkout v0.1.1
mkdir cpptrace/build mkdir cpptrace/build
cd cpptrace/build cd cpptrace/build
cmake .. -DCMAKE_BUILD_TYPE=Release cmake .. -DCMAKE_BUILD_TYPE=Release
@ -114,7 +114,7 @@ To install just for the local user (or any custom prefix):
```sh ```sh
git clone https://github.com/jeremy-rifkin/cpptrace.git git clone https://github.com/jeremy-rifkin/cpptrace.git
# optional: git checkout <HASH or TAG> git checkout v0.1.1
mkdir cpptrace/build mkdir cpptrace/build
cd cpptrace/build cd cpptrace/build
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=On -DCMAKE_INSTALL_PREFIX=$HOME/wherever cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=On -DCMAKE_INSTALL_PREFIX=$HOME/wherever