diff options
| author | 2023-05-13 23:58:17 +0400 | |
|---|---|---|
| committer | 2023-05-13 23:58:17 +0400 | |
| commit | c9c5d140b84685a03dc59b930cebb802b4c14892 (patch) | |
| tree | 31e2d09ad8dee463e7df8e4ca05ae486f347bfd4 /CMakeModules/CopyYuzuSDLDeps.cmake | |
| parent | Merge pull request #10244 from liamwhite/lower-upper (diff) | |
| download | yuzu-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/CopyYuzuSDLDeps.cmake')
| -rw-r--r-- | CMakeModules/CopyYuzuSDLDeps.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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 | ||
| 4 | function(copy_yuzu_SDL_deps target_dir) | 4 | function(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) |
| 8 | endfunction(copy_yuzu_SDL_deps) | 8 | endfunction(copy_yuzu_SDL_deps) |