From 1f7c14ebb6f3b676eb3008c1fc41c9e12a13ab52 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:24:02 -0500 Subject: [PATCH] Update target names, pointed out in #66 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()