Add note to readme about copying the .dll when using fetchcontent
This commit is contained in:
parent
57031e4c6b
commit
5080fb33d7
@ -45,6 +45,15 @@ FetchContent_Declare(
|
||||
)
|
||||
FetchContent_MakeAvailable(cpptrace)
|
||||
target_link_libraries(your_target cpptrace)
|
||||
|
||||
if(WIN32) # Copy the .dll on windows
|
||||
add_custom_command(
|
||||
TARGET your_target POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:cpptrace>
|
||||
$<TARGET_FILE_DIR:your_target>
|
||||
)
|
||||
endif()
|
||||
```
|
||||
|
||||
It's as easy as that. Cpptrace will automatically configure itself for your system.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user