summaryrefslogtreecommitdiff
path: root/CMakeModules
diff options
context:
space:
mode:
authorGravatar Danila Malyutin2023-05-13 23:58:17 +0400
committerGravatar Danila Malyutin2023-05-13 23:58:17 +0400
commitc9c5d140b84685a03dc59b930cebb802b4c14892 (patch)
tree31e2d09ad8dee463e7df8e4ca05ae486f347bfd4 /CMakeModules
parentMerge pull request #10244 from liamwhite/lower-upper (diff)
downloadyuzu-c9c5d140b84685a03dc59b930cebb802b4c14892.tar.gz
yuzu-c9c5d140b84685a03dc59b930cebb802b4c14892.tar.xz
yuzu-c9c5d140b84685a03dc59b930cebb802b4c14892.zip
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')
-rw-r--r--CMakeModules/CopyYuzuFFmpegDeps.cmake2
-rw-r--r--CMakeModules/CopyYuzuQt5Deps.cmake2
-rw-r--r--CMakeModules/CopyYuzuSDLDeps.cmake2
3 files changed, 3 insertions, 3 deletions
diff --git a/CMakeModules/CopyYuzuFFmpegDeps.cmake b/CMakeModules/CopyYuzuFFmpegDeps.cmake
index c6231737e..7aaa073ee 100644
--- a/CMakeModules/CopyYuzuFFmpegDeps.cmake
+++ b/CMakeModules/CopyYuzuFFmpegDeps.cmake
@@ -3,7 +3,7 @@
3 3
4function(copy_yuzu_FFmpeg_deps target_dir) 4function(copy_yuzu_FFmpeg_deps target_dir)
5 include(WindowsCopyFiles) 5 include(WindowsCopyFiles)
6 set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") 6 set(DLL_DEST "$<TARGET_FILE_DIR:${target_dir}>/")
7 file(READ "${FFmpeg_PATH}/requirements.txt" FFmpeg_REQUIRED_DLLS) 7 file(READ "${FFmpeg_PATH}/requirements.txt" FFmpeg_REQUIRED_DLLS)
8 string(STRIP "${FFmpeg_REQUIRED_DLLS}" FFmpeg_REQUIRED_DLLS) 8 string(STRIP "${FFmpeg_REQUIRED_DLLS}" FFmpeg_REQUIRED_DLLS)
9 windows_copy_files(${target_dir} ${FFmpeg_DLL_DIR} ${DLL_DEST} ${FFmpeg_REQUIRED_DLLS}) 9 windows_copy_files(${target_dir} ${FFmpeg_DLL_DIR} ${DLL_DEST} ${FFmpeg_REQUIRED_DLLS})
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 @@
4function(copy_yuzu_Qt5_deps target_dir) 4function(copy_yuzu_Qt5_deps target_dir)
5 include(WindowsCopyFiles) 5 include(WindowsCopyFiles)
6 if (MSVC) 6 if (MSVC)
7 set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") 7 set(DLL_DEST "$<TARGET_FILE_DIR:${target_dir}>/")
8 set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin") 8 set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin")
9 else() 9 else()
10 set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/") 10 set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/")
diff --git a/CMakeModules/CopyYuzuSDLDeps.cmake b/CMakeModules/CopyYuzuSDLDeps.cmake
index 7ffdd8a1d..464eed5e9 100644
--- a/CMakeModules/CopyYuzuSDLDeps.cmake
+++ b/CMakeModules/CopyYuzuSDLDeps.cmake
@@ -3,6 +3,6 @@
3 3
4function(copy_yuzu_SDL_deps target_dir) 4function(copy_yuzu_SDL_deps target_dir)
5 include(WindowsCopyFiles) 5 include(WindowsCopyFiles)
6 set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") 6 set(DLL_DEST "$<TARGET_FILE_DIR:${target_dir}>/")
7 windows_copy_files(${target_dir} ${SDL2_DLL_DIR} ${DLL_DEST} SDL2.dll) 7 windows_copy_files(${target_dir} ${SDL2_DLL_DIR} ${DLL_DEST} SDL2.dll)
8endfunction(copy_yuzu_SDL_deps) 8endfunction(copy_yuzu_SDL_deps)