summaryrefslogtreecommitdiff
path: root/CMakeModules/CopyYuzuQt5Deps.cmake
diff options
context:
space:
mode:
authorDanila Malyutin <d.maljutin@yandex.ru>2023-05-13 23:58:17 +0400
committerDanila Malyutin <d.maljutin@yandex.ru>2023-05-13 23:58:17 +0400
commitc9c5d140b84685a03dc59b930cebb802b4c14892 (patch)
tree31e2d09ad8dee463e7df8e4ca05ae486f347bfd4 /CMakeModules/CopyYuzuQt5Deps.cmake
parent9c739f1506dd549df314ccef386218cdf2e5f3a8 (diff)
Use TARGET_FILE_DIR generator expression
Use $<TARGET_FILE_DIR:...> where appropriate instead of trying to guess where the binary will end up.
Diffstat (limited to 'CMakeModules/CopyYuzuQt5Deps.cmake')
-rw-r--r--CMakeModules/CopyYuzuQt5Deps.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeModules/CopyYuzuQt5Deps.cmake b/CMakeModules/CopyYuzuQt5Deps.cmake
index ab56de444..b3a65c347 100644
--- a/CMakeModules/CopyYuzuQt5Deps.cmake
+++ b/CMakeModules/CopyYuzuQt5Deps.cmake
@@ -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/")