diff --git a/README.md b/README.md index c13ba28..b595f45 100644 --- a/README.md +++ b/README.md @@ -106,14 +106,14 @@ FetchContent_Declare( GIT_TAG v0.3.1 # ) FetchContent_MakeAvailable(cpptrace) -target_link_libraries(your_target cpptrace) +target_link_libraries(your_target cpptrace::cpptrace) # On windows copy cpptrace.dll to the same directory as the executable for your_target if(WIN32) add_custom_command( TARGET your_target POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different - $ + $ $ ) endif() @@ -553,7 +553,7 @@ FetchContent_Declare( GIT_TAG v0.3.1 # ) FetchContent_MakeAvailable(cpptrace) -target_link_libraries(your_target cpptrace) +target_link_libraries(your_target cpptrace::cpptrace) ``` It's as easy as that. Cpptrace will automatically configure itself for your system. Note: On windows and macos some @@ -683,7 +683,7 @@ if(WIN32) add_custom_command( TARGET your_target POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different - $ + $ $ ) endif()