Use TARGET_FILE_DIR generator expression

Use $<TARGET_FILE_DIR:...> where appropriate instead of trying to guess where the binary will end up.
This commit is contained in:
Danila Malyutin 2023-05-13 23:58:17 +04:00
parent 9c739f1506
commit c9c5d140b8
4 changed files with 4 additions and 8 deletions

View file

@ -4,7 +4,7 @@
function(copy_yuzu_Qt5_deps target_dir)
include(WindowsCopyFiles)
if (MSVC)
set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
set(DLL_DEST "$<TARGET_FILE_DIR:${target_dir}>/")
set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin")
else()
set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/")