Skip to content

Commit

Permalink
Fix target names for dll copying
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Nov 13, 2023
1 parent 697f8b0 commit 20cd140
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,13 +527,13 @@ if(WIN32)
add_custom_command(
TARGET my_executable POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:assert>
$<TARGET_FILE:assert::assert>
$<TARGET_FILE_DIR:my_executable>
)
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
4 changes: 2 additions & 2 deletions tests/add_subdirectory-integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ if(WIN32)
add_custom_command(
TARGET main POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:assert>
$<TARGET_FILE:assert::assert>
$<TARGET_FILE_DIR:main>
)
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()
4 changes: 2 additions & 2 deletions tests/fetchcontent-integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ if(WIN32)
add_custom_command(
TARGET main POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:assert>
$<TARGET_FILE:assert::assert>
$<TARGET_FILE_DIR:main>
)
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 20cd140

Please sign in to comment.