Upate usage instructions

This commit is contained in:
Jeremy 2023-07-23 15:58:28 -04:00
parent a8169aba8e
commit 8874e7911b
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -41,7 +41,7 @@ FetchContent_Declare(
GIT_TAG <HASH or TAG>
)
FetchContent_MakeAvailable(cpptrace)
target_link_libraries(your_target PRIVATE cpptrace)
target_link_libraries(your_target cpptrace)
```
It's as easy as that. Cpptrace will automatically configure itself for your system.
@ -66,9 +66,8 @@ sudo make install
Using through cmake:
```cmake
include(CMakeFindDependencyMacro)
find_dependency(cpptrace REQUIRED)
target_link_libraries(<your target> cpptrace)
find_package(cpptrace REQUIRED)
target_link_libraries(<your target> cpptrace::cpptrace)
```
Be sure to configure with `-DCMAKE_BUILD_TYPE=Debug`.