Fix move_dll for VS2019

TARGET_FILE_DIR will do the right thing regardless of VR version
This commit is contained in:
Nevyn Bengtsson 2019-11-07 23:08:44 +01:00
parent 86d9c913bd
commit 66aa0449a5
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ if(WIN32)
add_custom_command(TARGET lovr POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
$<TARGET_FILE:${ARGV0}>
${CMAKE_CURRENT_BINARY_DIR}/$<CONFIGURATION>/$<TARGET_FILE_NAME:${ARGV0}>
$<TARGET_FILE_DIR:lovr>/$<TARGET_FILE_NAME:${ARGV0}>
)
endif()
endfunction()