Skip to content

Commit

Permalink
Fix target in a custom command
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Nov 23, 2023
1 parent 74d92b8 commit cc7e7f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ if(WIN32)
add_custom_command(
TARGET my_executable POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:cpptrace>
$<TARGET_FILE:cpptrace::cpptrace>
$<TARGET_FILE_DIR:my_executable>
)
endif()
Expand Down
2 changes: 1 addition & 1 deletion tests/add_subdirectory-integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if(WIN32)
add_custom_command(
TARGET main POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:cpptrace>
$<TARGET_FILE:cpptrace::cpptrace>
$<TARGET_FILE_DIR:main>
)
endif()
2 changes: 1 addition & 1 deletion tests/fetchcontent-integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if(WIN32)
add_custom_command(
TARGET main POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:cpptrace>
$<TARGET_FILE:cpptrace::cpptrace>
$<TARGET_FILE_DIR:main>
)
endif()

0 comments on commit cc7e7f4

Please sign in to comment.